Skip to content

Commit

Permalink
chore: nx
Browse files Browse the repository at this point in the history
  • Loading branch information
w1am committed Feb 10, 2025
1 parent d30060e commit 7a8c477
Show file tree
Hide file tree
Showing 6 changed files with 293 additions and 3,726 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,6 @@ package-lock.json
!/.yarn/plugins
!/.yarn/releases
!/.yarn/sdks
/.pnp.*
/.pnp.*

.nx/
5 changes: 0 additions & 5 deletions lerna.json

This file was deleted.

17 changes: 17 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/dist"],
"cache": true
},
"test": {
"cache": false
},
"lint": {
"cache": false
}
},
"defaultBase": "main",
"useInferencePlugins": false
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"name": "eventstore-node-client-repository",
"private": true,
"scripts": {
"build": "yarn lerna run --stream build",
"build:ts": "yarn lerna run --stream build:ts",
"build:watch": "yarn lerna run build:watch --parallel",
"lint": "yarn lint:prettier && yarn lint:eslint",
"build": "nx run-many --target=build",
"build:ts": "nx run-many --target=build:ts",
"build:watch": "nx run-many --target=build:watch --parallel",
"lint": "nx run-many --target=lint:prettier && nx run-many --target=lint:eslint",
"lint:prettier": "prettier --check \"packages/*/src/**/**/!(*.d).{ts,json}\"",
"lint:eslint": "eslint \"packages/*/src/**/*.ts\"",
"prettier:fix": "prettier --write \"packages/*/src/**/**/!(*.d).{ts,json}\"",
"clean": "yarn lerna run --stream clean",
"clean": "nx run-many --target=clean",
"prepublishOnly": "yarn clean && yarn build && yarn test",
"test": "yarn lerna run --stream test --"
"test": "nx run-many --target=test"
},
"author": "Event Store Limited",
"license": "Apache-2.0",
Expand All @@ -27,8 +27,8 @@
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-plugin-tsdoc": "^0.2.17",
"lerna": "^6.6.2",
"npm-run-all": "^4.1.5",
"nx": "20.1.3",
"prettier": "^2.4.1",
"typescript": "^5.7.3"
},
Expand All @@ -38,5 +38,5 @@
"dependencies": {
"@tsconfig/node18": "^18.2.4"
},
"packageManager": "[email protected]+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
"packageManager": "[email protected]"
}
8 changes: 7 additions & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,21 @@
"ts-jest": "^29.2.5"
},
"devDependencies": {
"@grpc/grpc-js": "^1.9.12",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.51.1",
"@opentelemetry/instrumentation": "^0.50.0",
"@opentelemetry/sdk-trace-node": "^1.23.0",
"@opentelemetry/semantic-conventions": "^1.23.0",
"@types/debug": "^4.1.12",
"@types/jest": "^29.5.12",
"@types/uuid": "^8.3.4",
"debug": "^4.3.2",
"docker-compose": "^0.24.8",
"dotenv": "^16.4.5",
"get-port": "^5.1.1",
"npm-run-all": "^4.1.5",
"shx": "^0.3.4"
"shx": "^0.3.4",
"uuid": "^8.3.2"
}
}
Loading

0 comments on commit 7a8c477

Please sign in to comment.