@pixpilot/scaffoldfy-configs 0.48.2 → 0.48.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/package.json +4 -4
- package/pixpilot-changesets-release/release-github-packages.yml +8 -0
- package/pixpilot-changesets-release/release.yml +3 -0
- package/test/workspace-package-generator.test.ts +22 -4
- package/workspace-package-generator/templates/package.json.hbs +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @pixpilot/scaffoldfy-configs
|
|
2
2
|
|
|
3
|
+
## 0.48.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- pass registry token to release installs
|
|
8
|
+
- 3fc21c9: fix(pixpilot-changesets-release): pass secrets to the reusable CI workflow and the registry token to the GitHub Packages release install, so `@pixpilot-private` dependencies no longer fail with a 401
|
|
9
|
+
|
|
10
|
+
## 0.48.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- update package.json.hbs for dependency cataloging
|
|
15
|
+
|
|
3
16
|
## 0.48.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/scaffoldfy-configs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.48.
|
|
4
|
+
"version": "0.48.4",
|
|
5
5
|
"author": "PixPilot <m.doaie@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^22.18.11",
|
|
31
31
|
"eslint": "^9.38.0",
|
|
32
|
-
"@internal/eslint-config": "0.3.0",
|
|
33
32
|
"@internal/prettier-config": "0.0.1",
|
|
33
|
+
"@internal/tsdown-config": "0.1.0",
|
|
34
|
+
"@internal/eslint-config": "0.3.0",
|
|
34
35
|
"@internal/vitest-config": "0.1.0",
|
|
35
|
-
"@pixpilot/scaffoldfy": "0.58.0"
|
|
36
|
-
"@internal/tsdown-config": "0.1.0"
|
|
36
|
+
"@pixpilot/scaffoldfy": "0.58.0"
|
|
37
37
|
},
|
|
38
38
|
"prettier": "@internal/prettier-config",
|
|
39
39
|
"publishConfig": {
|
|
@@ -13,6 +13,9 @@ jobs:
|
|
|
13
13
|
ci:
|
|
14
14
|
name: Run CI Checks
|
|
15
15
|
uses: ./.github/workflows/ci.yml
|
|
16
|
+
# Called workflows get no secrets unless passed; without this the CI
|
|
17
|
+
# install runs with an empty PIXPILOT_PRIVATE_REGISTRY_TOKEN and 401s.
|
|
18
|
+
secrets: inherit
|
|
16
19
|
|
|
17
20
|
release:
|
|
18
21
|
name: Create Release and Publish
|
|
@@ -49,6 +52,11 @@ jobs:
|
|
|
49
52
|
|
|
50
53
|
- name: Setup project
|
|
51
54
|
uses: pixpilot/github-actions/setup-pnpm-project@v1
|
|
55
|
+
env:
|
|
56
|
+
# setup-node's .npmrc reads ${NODE_AUTH_TOKEN}; it is needed to install
|
|
57
|
+
# @pixpilot-private dependencies. npm-auth-token would not work here:
|
|
58
|
+
# it writes ~/.npmrc, which setup-node's NPM_CONFIG_USERCONFIG shadows.
|
|
59
|
+
NODE_AUTH_TOKEN: ${{ secrets.PIXPILOT_PRIVATE_REGISTRY_TOKEN }}
|
|
52
60
|
with:
|
|
53
61
|
registry-url: 'https://npm.pkg.github.com'
|
|
54
62
|
# setup-node defaults the scope to the repository owner. Left to that
|
|
@@ -13,6 +13,9 @@ jobs:
|
|
|
13
13
|
ci:
|
|
14
14
|
name: Run CI Checks
|
|
15
15
|
uses: ./.github/workflows/ci.yml
|
|
16
|
+
# Called workflows get no secrets unless passed; without this a CI that
|
|
17
|
+
# installs private packages runs with an empty registry token and 401s.
|
|
18
|
+
secrets: inherit
|
|
16
19
|
|
|
17
20
|
release:
|
|
18
21
|
name: Create Release and Publish
|
|
@@ -234,6 +234,7 @@ describe('workspace-package-generator – package.json.hbs rendering', () => {
|
|
|
234
234
|
|
|
235
235
|
expect(pkg.name).toBe('@internal/my-package');
|
|
236
236
|
expect(pkg.private).toBe(true);
|
|
237
|
+
expect(pkg.packageManager).toBe('pnpm@10.34.5');
|
|
237
238
|
expect(pkg.sideEffects).toBeUndefined();
|
|
238
239
|
expect(pkg.publishConfig).toBeUndefined();
|
|
239
240
|
expect(pkg.files).toBeUndefined();
|
|
@@ -241,9 +242,26 @@ describe('workspace-package-generator – package.json.hbs rendering', () => {
|
|
|
241
242
|
expect(pkg.scripts?.['test:ui:coverage']).toBe(
|
|
242
243
|
'vitest --ui --coverage --watch --hookTimeout=30000 --coverage.thresholds.lines=0 --coverage.thresholds.functions=0 --coverage.thresholds.branches=0 --coverage.thresholds.statements=0',
|
|
243
244
|
);
|
|
244
|
-
expect(pkg.devDependencies?.['@
|
|
245
|
-
expect(pkg.devDependencies?.['@vitest/
|
|
246
|
-
expect(pkg.devDependencies?.vitest).toBe('catalog:
|
|
245
|
+
expect(pkg.devDependencies?.['@types/node']).toBe('catalog:tooling');
|
|
246
|
+
expect(pkg.devDependencies?.['@vitest/coverage-v8']).toBe('catalog:testing');
|
|
247
|
+
expect(pkg.devDependencies?.['@vitest/ui']).toBe('catalog:testing');
|
|
248
|
+
expect(pkg.devDependencies?.eslint).toBe('catalog:tooling');
|
|
249
|
+
expect(pkg.devDependencies?.typescript).toBe('catalog:tooling');
|
|
250
|
+
expect(pkg.devDependencies?.vitest).toBe('catalog:testing');
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
it('should use the React catalog for internal React packages', () => {
|
|
254
|
+
const rendered = renderHbs(tplPath, {
|
|
255
|
+
packageBaseName: 'ui',
|
|
256
|
+
isPublishablePackage: false,
|
|
257
|
+
isReactPackage: true,
|
|
258
|
+
relativeRootPath: '../../',
|
|
259
|
+
});
|
|
260
|
+
const pkg = JSON.parse(rendered);
|
|
261
|
+
|
|
262
|
+
for (const name of ['@types/react', '@types/react-dom', 'react', 'react-dom']) {
|
|
263
|
+
expect(pkg.devDependencies?.[name]).toBe('catalog:react');
|
|
264
|
+
}
|
|
247
265
|
});
|
|
248
266
|
|
|
249
267
|
/** Public npm package with tsdown bundler */
|
|
@@ -277,7 +295,7 @@ describe('workspace-package-generator – package.json.hbs rendering', () => {
|
|
|
277
295
|
expect(pkg.files).toContain('dist');
|
|
278
296
|
expect(pkg.scripts?.build).toBe('tsdown');
|
|
279
297
|
expect(pkg.devDependencies?.['@pixpilot/tsdown-config']).toBeDefined();
|
|
280
|
-
expect(pkg.devDependencies?.tsdown).toBe('catalog:
|
|
298
|
+
expect(pkg.devDependencies?.tsdown).toBe('catalog:tooling');
|
|
281
299
|
});
|
|
282
300
|
|
|
283
301
|
/** Private npm package with tsc bundler */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{{#unless isPublishablePackage}}
|
|
6
6
|
"private": true,
|
|
7
7
|
{{/unless}}
|
|
8
|
-
"packageManager": "pnpm@10.
|
|
8
|
+
"packageManager": "pnpm@10.34.5",
|
|
9
9
|
{{#if author}}
|
|
10
10
|
"author": "{{author}} <{{authorEmail}}>",
|
|
11
11
|
{{/if}}
|
|
@@ -93,39 +93,39 @@
|
|
|
93
93
|
{{#if isPublishablePackage}}
|
|
94
94
|
{{#if isBundlerTsdown}}
|
|
95
95
|
{{#unless hasTsdownConfig}}
|
|
96
|
-
"{{tsdownConfigPackage}}": "
|
|
96
|
+
"{{tsdownConfigPackage}}": "catalog:tooling",
|
|
97
97
|
{{/unless}}
|
|
98
98
|
{{/if}}
|
|
99
99
|
{{/if}}
|
|
100
|
-
"@types/node": "catalog:
|
|
100
|
+
"@types/node": "catalog:tooling",
|
|
101
101
|
{{#if isReactPackage}}
|
|
102
102
|
{{#if isPublishablePackage}}
|
|
103
|
-
"@types/react": "
|
|
104
|
-
"@types/react-dom": "
|
|
103
|
+
"@types/react": "catalog:react",
|
|
104
|
+
"@types/react-dom": "catalog:react",
|
|
105
105
|
{{else}}
|
|
106
|
-
"@types/react": "catalog:",
|
|
107
|
-
"@types/react-dom": "catalog:",
|
|
106
|
+
"@types/react": "catalog:react",
|
|
107
|
+
"@types/react-dom": "catalog:react",
|
|
108
108
|
{{/if}}
|
|
109
109
|
{{/if}}
|
|
110
|
-
"@vitest/coverage-v8": "catalog:
|
|
111
|
-
"@vitest/ui": "catalog:
|
|
112
|
-
"eslint": "catalog:
|
|
110
|
+
"@vitest/coverage-v8": "catalog:testing",
|
|
111
|
+
"@vitest/ui": "catalog:testing",
|
|
112
|
+
"eslint": "catalog:tooling",
|
|
113
113
|
{{#if isReactPackage}}
|
|
114
114
|
{{#if isPublishablePackage}}
|
|
115
|
-
"react": "
|
|
116
|
-
"react-dom": "
|
|
115
|
+
"react": "catalog:react",
|
|
116
|
+
"react-dom": "catalog:react",
|
|
117
117
|
{{else}}
|
|
118
|
-
"react": "catalog:",
|
|
119
|
-
"react-dom": "catalog:",
|
|
118
|
+
"react": "catalog:react",
|
|
119
|
+
"react-dom": "catalog:react",
|
|
120
120
|
{{/if}}
|
|
121
121
|
{{/if}}
|
|
122
122
|
{{#if isPublishablePackage}}
|
|
123
123
|
{{#if isBundlerTsdown}}
|
|
124
|
-
"tsdown": "catalog:
|
|
124
|
+
"tsdown": "catalog:tooling",
|
|
125
125
|
{{/if}}
|
|
126
126
|
{{/if}}
|
|
127
|
-
"typescript": "catalog:
|
|
128
|
-
"vitest": "catalog:
|
|
127
|
+
"typescript": "catalog:tooling",
|
|
128
|
+
"vitest": "catalog:testing"
|
|
129
129
|
},
|
|
130
130
|
"prettier": "@internal/prettier-config"
|
|
131
131
|
}
|