Skip to content

Commit e414421

Browse files
chore(repo): update new workspace template (#2901)
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
1 parent 518943d commit e414421

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

workspaces/repo-tools/packages/cli/src/lib/workspaces/templates/workspace/package.json.hbs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
"version": "1.0.0",
44
"private": true,
55
"engines": {
6-
"node": "18 || 20"
6+
"node": "22 || 24"
77
},
88
"scripts": {
9+
"start": "backstage-cli repo start",
910
"tsc": "tsc",
1011
"tsc:full": "tsc --skipLibCheck false --incremental false",
1112
"build:all": "backstage-cli repo build --all",
1213
"build:api-reports": "yarn build:api-reports:only --tsc",
13-
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type --validate-release-tags",
14+
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
1415
"build:knip-reports": "backstage-repo-tools knip-reports",
1516
"clean": "backstage-cli repo clean",
1617
"test": "backstage-cli repo test",
@@ -19,35 +20,35 @@
1920
"lint": "backstage-cli repo lint --since origin/main",
2021
"lint:all": "backstage-cli repo lint",
2122
"prettier:check": "prettier --check .",
23+
"prettier:fix": "prettier --write .",
2224
"new": "backstage-cli new --scope @red-hat-developer-hub",
2325
"postinstall": "cd ../../ && yarn install"
2426
},
25-
"workspaces": {
26-
"packages": [
27-
"packages/*",
28-
"plugins/*"
29-
]
30-
},
27+
"workspaces": [
28+
"packages/*",
29+
"plugins/*"
30+
],
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/redhat-developer/rhdh-plugins",
3434
"directory": "workspaces/{{name}}"
3535
},
3636
"devDependencies": {
3737
"@backstage/cli": "^{{version '@backstage/cli'}}",
38+
"@backstage/cli-defaults": "^{{version '@backstage/cli-defaults'}}",
3839
"@backstage/e2e-test-utils": "^{{version '@backstage/e2e-test-utils'}}",
3940
"@backstage/repo-tools": "^{{version '@backstage/repo-tools'}}",
4041
"@changesets/cli": "^2.27.1",
4142
"knip": "^5.27.4",
42-
"node-gyp": "^9.0.0",
43+
"node-gyp": "^10.0.0",
4344
"prettier": "^2.3.2",
44-
"typescript": "~5.3.0"
45+
"typescript": "~5.8.0"
4546
},
4647
"resolutions": {
4748
"@types/react": "^18",
4849
"@types/react-dom": "^18"
4950
},
50-
"prettier": "@spotify/prettier-config",
51+
"prettier": "@backstage/cli/config/prettier",
5152
"lint-staged": {
5253
"*.{js,jsx,ts,tsx,mjs,cjs}": [
5354
"eslint --fix",

workspaces/repo-tools/packages/cli/src/lib/workspaces/templates/workspace/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"rootDir": ".",
1414
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2022"],
1515
"target": "ES2022",
16-
"useUnknownInCatchVariables": false
16+
"useUnknownInCatchVariables": false,
17+
"jsx": "react-jsx"
1718
}
1819
}

0 commit comments

Comments
 (0)