Skip to content

Commit

Permalink
fix: don't copy to dist until after build
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed Mar 14, 2024
1 parent c147133 commit c471fde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/dm-core-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
"types": "dist/index.d.ts",
"scripts": {
"prebuild": "shx rm -rf dist",
"build": "tsc && npx tailwindcss -i ./src/styles/main.css -o ./dist/main.css --minify",
"copy-css-file": "cp ./src/build.css ./dist/main.css",
"build:css": "npx tailwindcss -i ./src/styles/main.css -o ./src/build.css --minify",
"build": "tsc && yarn build:css && yarn copy-css-file",
"test": "jest test",
"test-watch": "jest test --watchAll"
}
Expand Down
5 changes: 3 additions & 2 deletions packages/dm-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
"types": "dist/index.d.ts",
"scripts": {
"prebuild": "shx rm -rf dist",
"build:css": "npx tailwindcss -i ./src/styles/base.css -o ./dist/main.css",
"build": "tsc && yarn build:css",
"build:css": "npx tailwindcss -i ./src/styles/base.css -o ./src/build.css --minify",
"copy-css-file": "cp ./src/build.css ./dist/main.css",
"build": "tsc && yarn build:css && yarn copy-css-file",
"test": "jest test"
}
}

0 comments on commit c471fde

Please sign in to comment.