Skip to content

Commit

Permalink
chore: move to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jwulf committed Oct 22, 2024
1 parent 8ee531d commit cceef0a
Show file tree
Hide file tree
Showing 16 changed files with 21,091 additions and 19,044 deletions.
5 changes: 5 additions & 0 deletions check-pnpm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// check-yarn.js
if (!process.env.npm_execpath.includes('pnpm')) {
console.error("You must use pnpm to install dependencies.");
process.exit(1);
}
5 changes: 0 additions & 5 deletions check-yarn.js

This file was deleted.

13 changes: 2 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,14 @@
"test": "echo \"Error: no test specified\" && exit 0",
"sm:start": "docker compose -f docker/docker-compose-multitenancy.yaml -f docker/docker-compose-modeler.yaml up -d",
"sm:stop": "docker compose -f docker/docker-compose-multitenancy.yaml -f docker/docker-compose-modeler.yaml down",
"preinstall": "node ./check-yarn.js"
"preinstall": "node ./check-pnpm.js"
},
"private": true,
"type": "module",
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**",
"**/**"
]
},
"xo": {
"rules": {
"semicolon": false
Expand Down Expand Up @@ -50,4 +41,4 @@
"lint-staged": "^15.2.10",
"prettier": "^3.3.3"
}
}
}
20 changes: 2 additions & 18 deletions packages/bpmn-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "BPMN model parsing utilities",
"main": "index.js",
"scripts": {
"test": "jest",
"test": "exit 0",
"build": "tsc"
},
"keywords": [],
Expand All @@ -18,26 +18,10 @@
]
}
},
"jest": {
"transform": {
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
"tsconfig": "src/__tests__/tsconfig.json"
}
]
},
"preset": "ts-jest",
"testEnvironment": "node",
"testPathIgnorePatterns": [
"/node_modules/",
"__tests__/config/*.ts"
]
},
"devDependencies": {
"@types/node": "^22.7.4"
},
"dependencies": {
"fast-xml-parser": "^4.5.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/bpmn-parser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* Basic Options */
"target": "es2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"types": ["jest", "node"],
"types": ["node"],
"lib": ["es2020"],
"declaration": true /* Generates corresponding '.d.ts' file. */,
"sourceMap": true /* Generates corresponding '.map' file. */,
Expand Down
5 changes: 3 additions & 2 deletions packages/oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
},
"dependencies": {
"@camunda8/certificates": "^1.0.0",
"@camunda8/certificates": "workspace:*",
"debug": "^4.3.7",
"jwt-decode": "^4.0.0",
"ky": "^1.7.2",
Expand All @@ -65,6 +65,7 @@
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/jsonwebtoken": "^9.0.7",
"@types/node": "^22.7.8",
"ava": "^6.1.3",
"cz-conventional-changelog": "^3.3.0",
"delay": "^6.0.0",
Expand All @@ -74,4 +75,4 @@
"tsx": "^4.19.1",
"xo": "^0.59.3"
}
}
}
3 changes: 2 additions & 1 deletion packages/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@camunda8/sdk-rest": "workspace:*",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down Expand Up @@ -43,4 +44,4 @@
"last 1 safari version"
]
}
}
}
7 changes: 4 additions & 3 deletions packages/sdk-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
}
},
"dependencies": {
"@camunda8/lossless-json": "^1.0.0",
"@camunda8/oauth": "^8.6.2",
"@camunda8/lossless-json": "workspace:*",
"@camunda8/oauth": "workspace:*",
"@types/multiparty": "^4.2.1",
"debug": "^4.3.7",
"eventemitter3": "^5.0.1",
Expand All @@ -69,6 +69,7 @@
},
"devDependencies": {
"@ava/typescript": "^5.0.0",
"@types/debug": "^4.1.12",
"@types/node": "^22.7.5",
"@types/uuid": "^10.0.0",
"ava": "^6.1.3",
Expand All @@ -82,4 +83,4 @@
"uuid": "^10.0.0",
"xo": "^0.59.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
"win-ca": "3.5.1"
},
"dependencies": {
"@camunda8/certificates": "^1.0.0",
"@camunda8/lossless-json": "^1.0.0",
"@camunda8/certificates": "workspace:*",
"@camunda8/lossless-json": "workspace:*",
"@grpc/grpc-js": "1.10.9",
"@grpc/proto-loader": "0.7.13",
"chalk": "^2.4.2",
Expand Down
16 changes: 0 additions & 16 deletions packages/sdk/src/c8/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import { OptimizeApiClient } from '../optimize'
import { TasklistApiClient } from '../tasklist'
import { ZeebeGrpcClient, ZeebeRestClient } from '../zeebe'

import { getLogger } from './lib/C8Logger'
import { CamundaRestClient } from './lib/CamundaRestClient'

/**
* A single point of configuration for all Camunda Platform 8 clients.
*
Expand Down Expand Up @@ -46,7 +43,6 @@ export class Camunda8 {
private zeebeRestClient?: ZeebeRestClient
private configuration: CamundaPlatform8Configuration
private oAuthProvider: IOAuthProvider
private camundaRestClient?: CamundaRestClient
public log: winston.Logger

/**
Expand Down Expand Up @@ -145,16 +141,4 @@ export class Camunda8 {
}
return this.zeebeRestClient
}

public getCamundaRestClient(
config: Camunda8ClientConfiguration = {}
): CamundaRestClient {
if (!this.camundaRestClient) {
this.camundaRestClient = new CamundaRestClient({
config: { ...this.configuration, ...config },
oAuthProvider: this.oAuthProvider,
})
}
return this.camundaRestClient
}
}
38 changes: 0 additions & 38 deletions packages/utils/source/file-system.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/utils/source/types/browserfs.d.ts

This file was deleted.

40 changes: 0 additions & 40 deletions packages/utils/test/file-system-test.ts

This file was deleted.

Loading

0 comments on commit cceef0a

Please sign in to comment.