Skip to content

Commit

Permalink
update yarn generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Aug 13, 2024
1 parent 5fca3ce commit 19273bf
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ packages/toolkit/truffle/contracts_build/*
docker-compose-tmp.yml

# yarn berry
.yarn/install-state.gz
.yarn/install-state.gz
.yarn/releases
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
"engines": {
"node": "22.x"
},
"workspaces": {
"packages": [
"packages/*"
]
},
"workspaces": [
"packages/*"
],
"scripts": {
"build": "yarn workspaces foreach --all -pt run build",
"test": "yarn workspaces foreach --all -pt run test",
Expand All @@ -25,7 +23,7 @@
"devDependencies": {
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.6",
"@types/node": "^20.14.10",
"@types/node": "^22.2.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"chai": "^4.3.10",
Expand All @@ -36,6 +34,7 @@
"nodemon": "^3.0.2",
"rimraf": "^3.0.2",
"ts-node": "^10.9.2",
"tsx": "^4.17.0",
"typescript": "^5.5.4"
},
"packageManager": "yarn@4.4.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"build": "yarn run generate && tsc -p tsconfig.json",
"generate": "NODE_OPTIONS=--loader=ts-node/esm ts-node -P tsconfig.json ./src/validation/generateSchemas.ts tsconfig.json ./src/validation/schemas",
"generate": "node --import=tsx/esm ./src/validation/generateSchemas.ts tsconfig.json ./src/validation/schemas",
"dev": "tsc -w",
"lint": "eslint . --ext .ts --fix src"
},
Expand All @@ -28,6 +28,6 @@
"@types/node": "20.13.0",
"ajv": "^8.12.0",
"mocha": "^10.7.0",
"typescript-json-schema": "^0.62.0"
"typescript-json-schema": "^0.64.0"
}
}
Loading

0 comments on commit 19273bf

Please sign in to comment.