Skip to content

Commit

Permalink
Made copy-styles safer
Browse files Browse the repository at this point in the history
Replaced `;` with `&&` for chaining copying commands. This means copy-styles will return a fail code if it doesn't copy to esm correctly.
  • Loading branch information
DanielArnould committed Dec 7, 2023
1 parent 2b93c2e commit 3fb283b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:copy-styles && npm run build:example",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir ./dist/cjs",
"build:copy-styles": "cp -r ./src/style ./dist/esm; cp -r ./src/style ./dist/cjs",
"build:copy-styles": "cp -r ./src/style ./dist/esm && cp -r ./src/style ./dist/cjs",
"build:example": "(cd ./example && tsc && vite build)",
"test": "tsc && npm run format:check && npm run test:integration",
"test:integration": "BROWSER=none jest --maxWorkers=1 -c jest.config.js",
Expand Down

0 comments on commit 3fb283b

Please sign in to comment.