Skip to content

Commit

Permalink
chore: version platform libraries npm package (#15257)
Browse files Browse the repository at this point in the history
* wip

* fix: watch mode and eslint slow

* update yarn lock

* Regenerated yarn.lock file for this branch

---------

Co-authored-by: Alex van Andel <[email protected]>
  • Loading branch information
ThyMinimalDev and emrysal authored May 30, 2024
1 parent 86342d1 commit 344454e
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 78 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
apps/api/v2/dist
packages/platform/**/dist/*
**/**/node_modules
**/**/.next
**/**/public
Expand Down
6 changes: 3 additions & 3 deletions apps/api/v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"build": "yarn dev:build && nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"dev:build:watch": "yarn workspace @calcom/platform-constants build:watch & yarn workspace @calcom/platform-utils build:watch & yarn workspace @calcom/platform-types build:watch & yarn workspace @calcom/platform-libraries build:watch",
"dev:build": "yarn workspace @calcom/platform-constants build && yarn workspace @calcom/platform-utils build && yarn workspace @calcom/platform-types build && yarn workspace @calcom/platform-libraries build",
"dev:build:watch": "yarn workspace @calcom/platform-constants build:watch & yarn workspace @calcom/platform-utils build:watch & yarn workspace @calcom/platform-types build:watch",
"dev:build": "yarn workspace @calcom/platform-constants build && yarn workspace @calcom/platform-utils build && yarn workspace @calcom/platform-types build",
"dev": "yarn dev:build && docker-compose up -d && yarn copy-swagger-module && yarn start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node ./dist/apps/api/v2/src/main.js",
Expand All @@ -25,7 +25,7 @@
},
"dependencies": {
"@calcom/platform-constants": "*",
"@calcom/platform-libraries": "*",
"@calcom/platform-libraries": "0.0.2",
"@calcom/platform-types": "*",
"@calcom/platform-utils": "*",
"@calcom/prisma": "*",
Expand Down
24 changes: 18 additions & 6 deletions apps/api/v2/swagger/documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2104,17 +2104,20 @@
"type": "boolean"
},
"slotInterval": {
"type": "number"
"type": "number",
"minimum": 0
},
"minimumBookingNotice": {
"type": "number",
"minimum": 0
},
"beforeEventBuffer": {
"type": "number"
"type": "number",
"minimum": 0
},
"afterEventBuffer": {
"type": "number"
"type": "number",
"minimum": 0
}
},
"required": [
Expand Down Expand Up @@ -2798,6 +2801,12 @@
"$ref": "#/components/schemas/EventTypeLocation"
}
},
"bookingFields": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BookingField"
}
},
"disableGuests": {
"type": "boolean"
},
Expand All @@ -2806,13 +2815,16 @@
"minimum": 0
},
"beforeEventBuffer": {
"type": "number"
"type": "number",
"minimum": 0
},
"afterEventBuffer": {
"type": "number"
"type": "number",
"minimum": 0
},
"slotInterval": {
"type": "number"
"type": "number",
"minimum": 0
}
}
},
Expand Down
21 changes: 8 additions & 13 deletions apps/api/v2/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"paths": {
"@/*": ["./src/*"],
"@prisma/client/*": ["@calcom/prisma/client/*"],
"@calcom/platform-libraries": ["../../../packages/platform/libraries/index.ts"],
"@calcom/platform-constants": ["../../../packages/platform/constants/index.ts"],
"@calcom/platform-types": ["../../../packages/platform/types/index.ts"],
"@calcom/platform-utils": ["../../../packages/platform/utils/index.ts"]
Expand All @@ -27,17 +26,13 @@
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false
},
"watchOptions": {
"watchFile": "fixedPollingInterval",
"watchDirectory": "useFsEvents",
"fallbackPolling": "dynamicPriority",
"synchronousWatchDirectory": true,
"excludeDirectories": ["**/node_modules", "dist"]
},
"exclude": ["./dist", "./node_modules", "next-i18next.config.js"],
"include": [
"./**/*.ts",
"../../../packages/types/*.d.ts",
"../../../packages/platform/libraries/**/*.ts",
"../../../packages/platform/libraries/**/*.d.ts",
"../../../packages/platform/constants/**/*.ts",
"../../../packages/platform/constants/**/*.d.ts",
"../../../packages/platform/types/**/*.ts",
"../../../packages/platform/types/**/*.d.ts",
"../../../packages/platform/utils/**/*.ts",
"../../../packages/platform/utils/**/*.d.ts"
]
"include": ["./**/*.ts", "../../../packages/types/*.d.ts"]
}
1 change: 1 addition & 0 deletions packages/platform/atoms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"publish": "rm -rf dist && yarn build && npm publish --access public"
},
"devDependencies": {
"@calcom/platform-libraries": "0.0.2",
"@rollup/plugin-node-resolve": "^15.0.1",
"@types/node": "^20.3.1",
"@types/react": "18.0.26",
Expand Down
1 change: 0 additions & 1 deletion packages/platform/atoms/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@calcom/dayjs/*": ["../../dayjs/*"],
"@calcom/platform-constants": ["../constants/index.ts"],
"@calcom/platform-types": ["../types/index.ts"],
"@calcom/platform-libraries": ["../libraries/index.ts"],
"@calcom/platform-utils": ["../constants/index.ts"],
"@calcom/trpc": ["../../trpc"],
"@calcom/app-store": ["../../app-store"],
Expand Down
2 changes: 0 additions & 2 deletions packages/platform/atoms/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default defineConfig({
"@calcom/dayjs",
"@calcom/platform-constants",
"@calcom/platform-types",
"@calcom/platform-libraries",
"@calcom/platform-utils",
],
},
Expand Down Expand Up @@ -49,7 +48,6 @@ export default defineConfig({
"@calcom/dayjs": path.resolve(__dirname, "../../dayjs"),
"@calcom/platform-constants": path.resolve(__dirname, "../constants/index.ts"),
"@calcom/platform-types": path.resolve(__dirname, "../types/index.ts"),
"@calcom/platform-libraries": path.resolve(__dirname, "../libraries/index.ts"),
"@calcom/platform-utils": path.resolve(__dirname, "../constants/index.ts"),
"@calcom/web/public/static/locales/en/common.json": path.resolve(
__dirname,
Expand Down
5 changes: 3 additions & 2 deletions packages/platform/libraries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"dist"
],
"scripts": {
"build": "yarn vite build && sed -i'' -e 's/const CACHE = new lruCache\\.LRUCache({ max: 1e3 });/const CACHE = new lruCache({ max: 1e3 });/g' ./dist/index.cjs",
"build:watch": "yarn vite build --watch"
"build": "yarn vite build",
"build:watch": "yarn vite build --watch",
"publish": "rm -rf dist && yarn build && npm publish --access public"
},
"dependencies": {
"@calcom/core": "*",
Expand Down
Loading

0 comments on commit 344454e

Please sign in to comment.