@pixpilot/scaffoldfy-configs 0.48.2 → 0.48.3
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
CHANGED
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.3",
|
|
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/
|
|
33
|
-
"@internal/prettier-config": "0.0.1",
|
|
32
|
+
"@internal/tsdown-config": "0.1.0",
|
|
34
33
|
"@internal/vitest-config": "0.1.0",
|
|
35
34
|
"@pixpilot/scaffoldfy": "0.58.0",
|
|
36
|
-
"@internal/
|
|
35
|
+
"@internal/eslint-config": "0.3.0",
|
|
36
|
+
"@internal/prettier-config": "0.0.1"
|
|
37
37
|
},
|
|
38
38
|
"prettier": "@internal/prettier-config",
|
|
39
39
|
"publishConfig": {
|
|
@@ -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
|
}
|