fix: use cross-platform rimraf for build scripts (#25814)
* use cross-platform rimraf for build scripts * fix: use cross-platform rimraf for build scripts * fix: replace cp with npx shx cp for cross-platform compatibility * Update schema.prisma
This commit is contained in:
1 parent
77184226e5
commit
5c9a5c5729
6 files changed
+11
-11
No files matched your search
@@ -17,7 +17,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest ./tests",
|
||||
"build": "rm -rf ./dist && tsc --build --force tsconfig.json",
|
||||
"build": "npx rimraf dist && tsc --build --force tsconfig.json",
|
||||
"build:watch": "tsc --build --force ./tsconfig.json --watch",
|
||||
"post-install": "yarn build"
|
||||
},
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
"build:watch": "yarn vite build --watch",
|
||||
"watch-lru-fix": "watch -n 1 'sed -i'' -e \"s/const CACHE = new lruCache\\.LRUCache({ max: 1e3 });/const CACHE = new lruCache({ max: 1e3 });/g\" ./dist/index.cjs'",
|
||||
"build:dev": "yarn vite build && sed -i'' -e 's/const CACHE = new lruCache\\.LRUCache({ max: 1e3 });/const CACHE = new lruCache({ max: 1e3 });/g' ./dist/index.cjs",
|
||||
"local": "node scripts/local.js && rm -rf dist && yarn build:dev && cd ../../.. && yarn",
|
||||
"publish-npm": "yarn && node scripts/prepublish.js && rm -rf dist && yarn build && npm publish --access public && node scripts/postpublish.js"
|
||||
"local": "node scripts/local.js && npx rimraf dist && yarn build:dev && cd ../../.. && yarn",
|
||||
"publish-npm": "yarn && node scripts/prepublish.js && npx rimraf dist && yarn build && npm publish --access public && node scripts/postpublish.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@calcom/features": "workspace:*",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "yarn clean && tsc --build --force tsconfig.json",
|
||||
"clean": "rm -rf ./dist",
|
||||
"clean": "npx rimraf dist",
|
||||
"build:watch": "tsc --build --force ./tsconfig.json --watch",
|
||||
"post-install": "yarn build"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user