Skip to content

Commit b88214b

Browse files
fix: use cross-platform rimraf for build scripts
1 parent 4ab9bd9 commit b88214b

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

packages/embeds/embed-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"embed-web-start": "yarn workspace @calcom/web start",
1616
"__build": "yarn tailwind && vite build && tsc --emitDeclarationOnly --declarationDir dist && cp -r ../../../apps/web/public/embed ./dist/",
1717
"__dev": "yarn tailwind && vite build --mode development",
18-
"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",
18+
"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",
1919
"build-preview": "PREVIEW_BUILD=1 yarn __build ",
2020
"vite": "vite",
2121
"tailwind": "tailwindcss --input ./src/styles.css --output ./src/tailwind.generated.css",
@@ -35,7 +35,7 @@
3535
"embed-tests-update-snapshots:ci": "yarn embed-tests-quick --update-snapshots",
3636
"withEmbedPublishEnv": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn",
3737
"prepack": "yarn ../../../ lint --filter='@calcom/embed-core' && yarn withEmbedPublishEnv build",
38-
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf ../../../apps/web/public/embed"
38+
"clean": "npx rimraf .turbo node_modules ../../../apps/web/public/embed"
3939
},
4040
"files": [
4141
"dist"

packages/embeds/embed-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"scripts": {
1313
"dev": "vite --port=3101 --open",
14-
"build": "rm -rf dist && vite build && cp ./dist/Cal.es.js ./dist/Cal.es.mjs && tsc --emitDeclarationOnly --declarationDir dist",
14+
"build": "npx rimraf dist && vite build && cp ./dist/Cal.es.js ./dist/Cal.es.mjs && tsc --emitDeclarationOnly --declarationDir dist",
1515
"preview": "vite preview",
1616
"type-check": "tsc --pretty --noEmit",
1717
"type-check:ci": "tsc-absolute --pretty --noEmit",
@@ -24,7 +24,7 @@
2424
"prepack": "yarn ../../../ lint --filter='@calcom/embed-react' && yarn withEmbedPublishEnv build && yarn packaged:tests",
2525
"embed-web-start": "yarn workspace @calcom/web start",
2626
"embed-dev": "yarn workspace @calcom/embed-react dev",
27-
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
27+
"clean": "npx rimraf .turbo node_modules dist"
2828
},
2929
"main": "./dist/Cal.umd.js",
3030
"module": "./dist/Cal.es.mjs",

packages/embeds/embed-snippet/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"directory": "packages/embeds/embed-snippet"
1313
},
1414
"scripts": {
15-
"build": "rm -rf dist && vite build && tsc --emitDeclarationOnly --declarationDir dist",
15+
"build": "npx rimraf dist && vite build && tsc --emitDeclarationOnly --declarationDir dist",
1616
"type-check": "tsc --pretty --noEmit",
1717
"type-check:ci": "tsc-absolute --pretty --noEmit",
1818
"lint": "eslint --ext .ts,.js src",
1919
"withEmbedPublishEnv": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn",
2020
"prepack": "yarn ../../../ lint --filter='@calcom/embed-snippet' && yarn withEmbedPublishEnv build",
21-
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
21+
"clean": "npx rimraf .turbo node_modules dist"
2222
},
2323
"files": [
2424
"dist"

packages/platform/libraries/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"build:watch": "yarn vite build --watch",
1414
"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'",
1515
"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",
16-
"local": "node scripts/local.js && rm -rf dist && yarn build:dev && cd ../../.. && yarn",
17-
"publish-npm": "yarn && node scripts/prepublish.js && rm -rf dist && yarn build && npm publish --access public && node scripts/postpublish.js"
16+
"local": "node scripts/local.js && npx rimraf dist && yarn build:dev && cd ../../.. && yarn",
17+
"publish-npm": "yarn && node scripts/prepublish.js && npx rimraf dist && yarn build && npm publish --access public && node scripts/postpublish.js"
1818
},
1919
"dependencies": {
2020
"@calcom/features": "workspace:*",

packages/prisma/schema.prisma

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,18 +1940,18 @@ model Avatar {
19401940
}
19411941

19421942
model OutOfOfficeEntry {
1943-
id Int @id @default(autoincrement())
1944-
uuid String @unique
1945-
start DateTime
1946-
end DateTime
1947-
notes String?
1948-
showNotePublicly Boolean @default(false)
1949-
userId Int
1950-
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
1951-
toUserId Int?
1952-
toUser User? @relation(name: "toUser", fields: [toUserId], references: [id], onDelete: Cascade)
1953-
reasonId Int?
1954-
reason OutOfOfficeReason? @relation(fields: [reasonId], references: [id], onDelete: SetNull)
1943+
id Int @id @default(autoincrement())
1944+
uuid String @unique
1945+
start DateTime
1946+
end DateTime
1947+
notes String?
1948+
showNotePublicly Boolean @default(false)
1949+
userId Int
1950+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
1951+
toUserId Int?
1952+
toUser User? @relation(name: "toUser", fields: [toUserId], references: [id], onDelete: Cascade)
1953+
reasonId Int?
1954+
reason OutOfOfficeReason? @relation(fields: [reasonId], references: [id], onDelete: SetNull)
19551955
19561956
createdAt DateTime @default(now())
19571957
updatedAt DateTime @updatedAt

0 commit comments

Comments
 (0)