Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/web-haptics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"access": "public"
},
"scripts": {
"build": "tsup",
"build": "rm -rf dist && tsup",
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build script now uses rm -rf, which is not portable (breaks on Windows shells) and introduces a new environment assumption compared to the rest of the repo. Prefer a cross-platform clean step (e.g., node -e using fs.rmSync(..., { recursive: true, force: true }), or add/use a rimraf-style tool) so pnpm build works consistently across OSes.

Suggested change
"build": "rm -rf dist && tsup",
"build": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true });\" && tsup",

Copilot uses AI. Check for mistakes.
"dev": "tsup --watch",
"lint": "eslint -c .eslintrc.cjs ./src/**/*.{ts,tsx}",
"lint:fix": "eslint --fix -c .eslintrc.cjs ./src/**/*.{ts,tsx}",
Expand Down
1 change: 0 additions & 1 deletion packages/web-haptics/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default defineConfig((options) => [
},
format: ["cjs", "esm"],
dts: true,
clean: true,
sourcemap: false,
target: "es2022",
external: ["react"],
Expand Down
Loading