add clean script

This commit is contained in:
2025-08-17 15:02:25 -04:00
parent a29f7d13f7
commit aebce4a473
2 changed files with 16 additions and 2 deletions

View File

@@ -4,18 +4,25 @@
"module": "src/index.ts",
"type": "module",
"scripts": {
"clean": "bash scripts/clean.sh",
"ci-build": "bun run build:node && bun run build:browser",
"build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --minify --production",
"build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --minify --production"
},
"devDependencies": {
"@types/bun": "latest",
"prettier": "^3.6.2"
"chai": "5.2.1",
"chai-as-promised": "8.0.1",
"mocha": "11.7.1",
"prettier": "3.6.2"
},
"peerDependencies": {
"typescript": "^5"
},
"publishConfig": {
"registry": "https://registry-node.techniker.me"
"registry": "https://registry-node.techniker.me"
},
"dependencies": {
"@types/node": "24.3.0"
}
}

7
scripts/clean.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
if [ -z "dist" ]; then
echo "Deleting [dist] directory";
rm -rf dist/
fi