Skip to content

Commit

Permalink
Fix yarn new (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiao-cll authored Dec 2, 2024
1 parent 47a01b4 commit 69f79c2
Show file tree
Hide file tree
Showing 4 changed files with 1,894 additions and 1,389 deletions.
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@
"pino-pretty": "13.0.0",
"prom-client": "15.1.3",
"redlock": "5.0.0-beta.2",
"ws": "8.18.0",
"yeoman-generator": "7.3.3",
"@yeoman/types": "1.5.0",
"mem-fs": "4.1.1",
"@yeoman/adapter": "2.0.0"
"ws": "8.18.0"
},
"scripts": {
"build": "mkdir -p ./dist/src && cp package.json dist/src && cp README.md dist/src && tsc && yarn build-generator",
"build-generator": "mkdir -p ./dist/src/generator-adapter/generators/app/templates && cp -R scripts/generator-adapter/generators/app/templates dist/src/generator-adapter/generators/app && cp scripts/generator-adapter/package.json dist/src/generator-adapter && tsc --project scripts/generator-adapter/tsconfig.json && tsc scripts/adapter-generator.ts --outDir dist/src",
"build": "rm -rf dist/src && mkdir -p ./dist/src && cp package.json dist/src && cp README.md dist/src && tsc && yarn pre-build-generator",
"pre-build-generator": "cd scripts/generator-adapter && yarn && cd .. && cd .. && yarn build-generator",
"build-generator": "mkdir -p ./dist/src/generator-adapter/generators/app/templates && cp -R scripts/generator-adapter/generators/app/templates dist/src/generator-adapter/generators/app && cp scripts/generator-adapter/package.json dist/src/generator-adapter && cp -R scripts/generator-adapter/node_modules dist/src/generator-adapter && tsc --project scripts/generator-adapter/tsconfig.json && tsc scripts/adapter-generator.ts --outDir dist/src",
"generate-docs": "typedoc src/**/*.ts",
"generate-ref-tables": "ts-node scripts/metrics-table.ts > docs/reference-tables/metrics.md && ts-node scripts/ea-settings-table.ts > docs/reference-tables/ea-settings.md && yarn prettier --write docs/reference-tables",
"lint-fix": "eslint --max-warnings=0 --fix . && prettier --write ./src/**/*.ts ./test/**/*.ts ./*.{json,yaml}",
Expand Down
9 changes: 8 additions & 1 deletion scripts/generator-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@
"keywords": [
"yeoman-generator",
"extnerl-adapter-generator"
]
],
"devDependencies": {
"yeoman-generator": "7.3.3",
"@yeoman/types": "1.5.0",
"mem-fs": "4.1.1",
"@yeoman/adapter": "2.0.0",
"@types/node": "22.10.1"
}
}
Loading

0 comments on commit 69f79c2

Please sign in to comment.