From e2d9e48edbed8adc54d8f6586341e7285e77a0d8 Mon Sep 17 00:00:00 2001 From: David Snelling Date: Mon, 30 Jun 2025 13:21:15 -0700 Subject: [PATCH] **chore(scripts): add `dry-run` script to `package.json`** - Introduced a `dry-run` script to simulate `npm pack` actions without creating a package archive. - Updated the `postinstall` script to adhere to consistent formatting. These changes improve developer workflows by enabling validation of package contents before publishing and ensuring consistency. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 772d7503..8fcbeeab 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "deploy:cloud:gcp": "cd cloud-wrapper && npm run build && npm run deploy:gcp", "deploy:cloud:cloudflare": "cd cloud-wrapper && npm run build && npm run deploy:cloudflare", "deploy:cloud": "echo 'Please use one of the following commands to deploy to a specific cloud provider:' && echo ' npm run deploy:cloud:aws' && echo ' npm run deploy:cloud:gcp' && echo ' npm run deploy:cloud:cloudflare'", - "postinstall": "echo 'Note: If you encounter dependency conflicts with TensorFlow.js packages, please use: npm install --legacy-peer-deps'" + "postinstall": "echo 'Note: If you encounter dependency conflicts with TensorFlow.js packages, please use: npm install --legacy-peer-deps'", + "dry-run": "npm pack --dry-run" }, "bin": { "brainy": "cli-wrapper.js"