Scheduling infrastructure for absolutely everyone.
fix: use cross-platform rimraf for build scripts (#25814)
Anshumancanrock5c9a5c5729b4
diff --git a/packages/embeds/embed-core/package.json b/packages/embeds/embed-core/package.jsonindex 3441d4292fc..73edc16ed1d 100644--- a/packages/embeds/embed-core/package.json+++ b/packages/embeds/embed-core/package.json@@ -13,9 +13,9 @@"scripts": {"embed-dev": "yarn workspace @calcom/embed-core dev","embed-web-start": "yarn workspace @calcom/web start",- "__build": "yarn tailwind && vite build && tsc --emitDeclarationOnly --declarationDir dist && cp -r ../../../apps/web/public/embed ./dist/",+ "__build": "yarn tailwind && vite build && tsc --emitDeclarationOnly --declarationDir dist && npx shx cp -r ../../../apps/web/public/embed ./dist/","__dev": "yarn tailwind && vite build --mode development",- "build": "rm -rf dist && NEXT_PUBLIC_EMBED_FINGER_PRINT=$(git rev-parse --short HEAD) NEXT_PUBLIC_EMBED_VERSION=$(node -p 'require(\"./package.json\").version') yarn __build",+ "build": "npx rimraf dist && NEXT_PUBLIC_EMBED_FINGER_PRINT=$(git rev-parse --short HEAD) NEXT_PUBLIC_EMBED_VERSION=$(node -p 'require(\"./package.json\").version') yarn __build","build-preview": "PREVIEW_BUILD=1 yarn __build ","vite": "vite","tailwind": "tailwindcss --input ./src/styles.css --output ./src/tailwind.generated.css",@@ -35,7 +35,7 @@"embed-tests-update-snapshots:ci": "yarn embed-tests-quick --update-snapshots","withEmbedPublishEnv": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn","prepack": "yarn ../../../ lint --filter='@calcom/embed-core' && yarn withEmbedPublishEnv build",- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf ../../../apps/web/public/embed"+ "clean": "npx rimraf .turbo node_modules ../../../apps/web/public/embed"},"files": ["dist"diff --git a/packages/embeds/embed-react/package.json b/packages/embeds/embed-react/package.jsonindex ff4a262dc4f..87c783fd7c6 100644--- a/packages/embeds/embed-react/package.json+++ b/packages/embeds/embed-react/package.json@@ -11,7 +11,7 @@},"scripts": {"dev": "vite --port=3101 --open",- "build": "rm -rf dist && vite build && cp ./dist/Cal.es.js ./dist/Cal.es.mjs && tsc --emitDeclarationOnly --declarationDir dist",+ "build": "npx rimraf dist && vite build && npx shx cp ./dist/Cal.es.js ./dist/Cal.es.mjs && tsc --emitDeclarationOnly --declarationDir dist","preview": "vite preview","type-check": "tsc --pretty --noEmit","type-check:ci": "tsc-absolute --pretty --noEmit",@@ -24,7 +24,7 @@"prepack": "yarn ../../../ lint --filter='@calcom/embed-react' && yarn withEmbedPublishEnv build && yarn packaged:tests","embed-web-start": "yarn workspace @calcom/web start","embed-dev": "yarn workspace @calcom/embed-react dev",- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"+ "clean": "npx rimraf .turbo node_modules dist"},"main": "./dist/Cal.umd.js","module": "./dist/Cal.es.mjs",diff --git a/packages/embeds/embed-snippet/package.json b/packages/embeds/embed-snippet/package.jsonindex 0520b083b44..bee98a5c84c 100644--- a/packages/embeds/embed-snippet/package.json+++ b/packages/embeds/embed-snippet/package.json@@ -12,13 +12,13 @@"directory": "packages/embeds/embed-snippet"},"scripts": {- "build": "rm -rf dist && vite build && tsc --emitDeclarationOnly --declarationDir dist",+ "build": "npx rimraf dist && vite build && tsc --emitDeclarationOnly --declarationDir dist","type-check": "tsc --pretty --noEmit","type-check:ci": "tsc-absolute --pretty --noEmit","lint": "biome lint src","withEmbedPublishEnv": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn","prepack": "yarn ../../../ lint --filter='@calcom/embed-snippet' && yarn withEmbedPublishEnv build",- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"+ "clean": "npx rimraf .turbo node_modules dist"},"files": ["dist"diff --git a/packages/platform/enums/package.json b/packages/platform/enums/package.jsonindex 6feb5e4b077..13b046761b9 100644--- a/packages/platform/enums/package.json+++ b/packages/platform/enums/package.json@@ -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"},diff --git a/packages/platform/libraries/package.json b/packages/platform/libraries/package.jsonindex 85cd7cb936d..6e9bbaebdbd 100644--- a/packages/platform/libraries/package.json+++ b/packages/platform/libraries/package.json@@ -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:*",diff --git a/packages/platform/types/package.json b/packages/platform/types/package.jsonindex ef2b6617b2f..229af0cc32e 100644--- a/packages/platform/types/package.json+++ b/packages/platform/types/package.json@@ -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"},