Skip to content

Commit 3307a37

Browse files
Update zip script in package.json to exclude unnecessary files and directories
1 parent e4b0570 commit 3307a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"build": "tsup src/cli.ts --format cjs --minify --out-dir dist --no-splitting",
1212
"package": "pkg dist/cli.js --targets node20-win-x64 --output bin/cloudsqlctl.exe",
13-
"zip": "powershell -Command \"Get-ChildItem -Path src, tests, tools, package.json, tsconfig.json, tsup.config.ts, jest.config.ts, .gitignore, eslint.config.mjs, LICENSE, *.md -ErrorAction SilentlyContinue | Compress-Archive -DestinationPath cloudsqlctl.zip -Force\"",
13+
"zip": "powershell -Command \"Get-ChildItem -Path . -Force | Where-Object { $_.Name -notin 'node_modules', 'dist', 'bin', 'coverage', '.git', '.vs', '.DS_Store' -and $_.Extension -notin '.zip', '.exe', '.log' } | Compress-Archive -DestinationPath cloudsqlctl.zip -Force\"",
1414
"lint": "eslint src",
1515
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --passWithNoTests",
1616
"prepare": "husky install"

0 commit comments

Comments
 (0)