@pixpilot/scaffoldfy-configs 0.43.0 → 0.44.0
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.
|
|
4
|
+
"version": "0.44.0",
|
|
5
5
|
"author": "PixPilot <m.doaie@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/node": "^22.18.11",
|
|
31
31
|
"eslint": "^9.38.0",
|
|
32
32
|
"@internal/eslint-config": "0.3.0",
|
|
33
|
-
"@internal/
|
|
34
|
-
"@internal/tsdown-config": "0.1.0",
|
|
33
|
+
"@internal/prettier-config": "0.0.1",
|
|
35
34
|
"@pixpilot/scaffoldfy": "0.56.0",
|
|
36
|
-
"@internal/
|
|
35
|
+
"@internal/tsdown-config": "0.1.0",
|
|
36
|
+
"@internal/vitest-config": "0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"prettier": "@internal/prettier-config",
|
|
39
39
|
"publishConfig": {
|
|
@@ -376,6 +376,20 @@ describe('workspace-package-generator – package.json.hbs rendering', () => {
|
|
|
376
376
|
describe('workspace-package-generator – tsdown.config.ts.hbs rendering', () => {
|
|
377
377
|
const tplPath = path.join(TEMPLATES_DIR, 'tsdown.config.ts.hbs');
|
|
378
378
|
|
|
379
|
+
it('should unbundle React packages only', () => {
|
|
380
|
+
const reactConfig = renderHbs(tplPath, {
|
|
381
|
+
tsdownConfigPackage: '@pixpilot/tsdown-config',
|
|
382
|
+
isReactPackage: true,
|
|
383
|
+
});
|
|
384
|
+
const vanillaConfig = renderHbs(tplPath, {
|
|
385
|
+
tsdownConfigPackage: '@pixpilot/tsdown-config',
|
|
386
|
+
isReactPackage: false,
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
expect(reactConfig).toContain('unbundle: true,');
|
|
390
|
+
expect(vanillaConfig).not.toContain('unbundle:');
|
|
391
|
+
});
|
|
392
|
+
|
|
379
393
|
it('should render without bundle size when bundleSizeLimit is falsy', () => {
|
|
380
394
|
const ctx = {
|
|
381
395
|
tsdownConfigPackage: '@pixpilot/tsdown-config',
|