Skip to content

Commit

Permalink
Switch root project to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mjameswh committed Dec 3, 2024
1 parent 42b2d85 commit 1a8cf08
Show file tree
Hide file tree
Showing 18 changed files with 94 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
node-version: ${{ matrix.node }}
# Comment out cache line when testing with act:
# (Test command is: act --platform ubuntu-latest=lucasalt/act_base:latest)
cache: 'npm'
- run: yarn
cache: 'pnpm'
- run: pnpm install
working-directory: ${{ matrix.project }}
- run: npm run build
working-directory: ${{ matrix.project }}
Expand Down Expand Up @@ -96,8 +96,8 @@ jobs:
node-version: 20
# Comment out cache line when testing with act:
# (Test command is: act --platform ubuntu-latest=lucasalt/act_base:latest)
cache: 'npm'
- run: yarn
cache: 'pnpm'
- run: pnpm install
working-directory: ${{ matrix.project }}
- run: npm run build
working-directory: ${{ matrix.project }}
Expand Down
4 changes: 4 additions & 0 deletions empty/src/workflows.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// Add Workflow Definitions here.
export async function YOUR_WORKFLOW(name: string): Promise<string> {
// Your workflow code here
return `Hello, ${name}!`;
}
1 change: 1 addition & 0 deletions encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/common": "^1.11.5",
"@temporalio/proto": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion food-delivery/apps/driver/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
2 changes: 2 additions & 0 deletions food-delivery/apps/driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
},
"dependencies": {
"@tanstack/react-query": "^4.16.1",
"@temporalio/client": "^1.11.5",
"@trpc/client": "^10.0.0-rc.8",
"@trpc/next": "^10.0.0-rc.8",
"@trpc/react-query": "^10.0.0-rc.8",
"@trpc/server": "^10.0.0-rc.8",
"common": "*",
"menu": "*",
Expand Down
2 changes: 1 addition & 1 deletion food-delivery/apps/menu/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
2 changes: 2 additions & 0 deletions food-delivery/apps/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"postinstall": "npm run tailwind"
},
"dependencies": {
"@heroicons/react": "^2.0.13",
"@tanstack/react-query": "^4.16.1",
"@temporalio/client": "^1.11.5",
"@trpc/client": "^10.0.0-rc.8",
"@trpc/next": "^10.0.0-rc.8",
"@trpc/react-query": "^10.0.0-rc.8",
Expand Down
14 changes: 12 additions & 2 deletions food-delivery/apps/worker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@
"extends": "tsconfig/base.json",
"version": "5.6.3",
"compilerOptions": {
"composite": true,
"sourceMap": true,
"rootDir": "./src",
"outDir": "./lib"
"outDir": "./lib",
"baseUrl": ".",
"paths": {
"activities": ["../../packages/activities/index"]
}
},
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts"],
"references": [
{
"path": "../../packages/activities"
}
]
}
4 changes: 3 additions & 1 deletion food-delivery/packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"lint": "TIMING=1 eslint \"**/*.ts*\""
},
"dependencies": {
"@temporalio/client": "^1.11.5"
"@temporalio/client": "^1.11.5",
"@trpc/server": "^10.0.0-rc.8",
"@trpc/react-query": "^10.0.0-rc.8"
},
"devDependencies": {
"eslint": "^8.57.1",
Expand Down
5 changes: 3 additions & 2 deletions food-delivery/packages/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"composite": false,
"lib": ["ES2015"],
"composite": true,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"isolatedModules": false,
"moduleResolution": "node",
"noUnusedLocals": false,
"noUnusedParameters": false,
Expand Down
1 change: 1 addition & 0 deletions food-delivery/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"eslint": "^8.57.1",
"eslint-config-custom": "*",
"react": "^18.3.1",
"next": "^15.0.3",
"tsconfig": "*",
"typescript": "^5.6.3"
},
Expand Down
1 change: 1 addition & 0 deletions interceptors-opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@opentelemetry/resources": "^1.9.0",
"@opentelemetry/sdk-node": "^0.55.0",
"@opentelemetry/sdk-trace-base": "^1.9.0",
"@opentelemetry/semantic-conventions": "^1.9.0",
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/interceptors-opentelemetry": "^1.11.5",
Expand Down
12 changes: 12 additions & 0 deletions message-passing/safe-message-handlers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"version": "5.6.3",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"rootDir": "./src",
"outDir": "./lib"
},
"include": ["src/**/*.ts"]
}
3 changes: 2 additions & 1 deletion monorepo-folders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"eslint": "^8.57.1",
"prettier": "^3.3.3",
"ts-loader": "^9.2.6"
}
},
"packageManager": "[email protected]"
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "samples-typescript",
"private": true,
"scripts": {
"bootstrap": "lerna bootstrap --npm-client=yarn --ignore=monorepo-folders --ignore=nestjs-exchange-rates --ignore=food-delivery",
"build": "lerna run build --ignore=monorepo-folders --ignore=nestjs-exchange-rates --ignore=food-delivery",
"build": "pnpm run -r build --ignore ",
"test": "lerna run --stream test",
"format": "prettier --write .",
"copy-shared-files": "zx .scripts/copy-shared-files.mjs",
Expand Down
46 changes: 41 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions protobufs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dependencies": {
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/common": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5",
"uuid": "^8.3.2"
Expand Down
2 changes: 2 additions & 0 deletions search-attributes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"dependencies": {
"@temporalio/activity": "^1.11.5",
"@temporalio/client": "^1.11.5",
"@temporalio/common": "^1.11.5",
"@temporalio/proto": "^1.11.5",
"@temporalio/worker": "^1.11.5",
"@temporalio/workflow": "^1.11.5"
},
Expand Down

0 comments on commit 1a8cf08

Please sign in to comment.