@pixpilot/scaffoldfy-configs 0.33.0 → 0.34.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/eslint.config.mjs
CHANGED
|
@@ -3,4 +3,13 @@ import baseConfig from '@internal/eslint-config/base';
|
|
|
3
3
|
// Uncomment to use the internal ESLint config if available
|
|
4
4
|
// /** @type {import('@internal/eslint-config').Config} */
|
|
5
5
|
/** @type {import('typescript-eslint').Config} */
|
|
6
|
-
export default
|
|
6
|
+
export default [
|
|
7
|
+
...(await baseConfig()),
|
|
8
|
+
{
|
|
9
|
+
files: ['test/**/*.test.ts'],
|
|
10
|
+
rules: {
|
|
11
|
+
'dot-notation': 'off',
|
|
12
|
+
'ts/dot-notation': 'off',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
];
|
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.34.0",
|
|
5
5
|
"author": "PixPilot <m.doaie@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.18.11",
|
|
28
28
|
"eslint": "^9.38.0",
|
|
29
|
-
"@internal/eslint-config": "0.3.0",
|
|
30
|
-
"@internal/tsdown-config": "0.1.0",
|
|
31
29
|
"@internal/prettier-config": "0.0.1",
|
|
30
|
+
"@internal/tsdown-config": "0.1.0",
|
|
32
31
|
"@internal/vitest-config": "0.1.0",
|
|
33
|
-
"@pixpilot/scaffoldfy": "0.52.0"
|
|
32
|
+
"@pixpilot/scaffoldfy": "0.52.0",
|
|
33
|
+
"@internal/eslint-config": "0.3.0"
|
|
34
34
|
},
|
|
35
35
|
"prettier": "@internal/prettier-config",
|
|
36
36
|
"publishConfig": {
|
|
@@ -95,10 +95,10 @@ function runSetup(workspaceApps: string): string {
|
|
|
95
95
|
stdio: 'pipe',
|
|
96
96
|
env: {
|
|
97
97
|
...process.env,
|
|
98
|
-
PATH: `${gitBinDirectory}${path.delimiter}${process.env
|
|
98
|
+
PATH: `${gitBinDirectory}${path.delimiter}${process.env['PATH'] ?? ''}`,
|
|
99
99
|
...(process.platform === 'win32' && {
|
|
100
|
-
NODE_OPTIONS: `--require=${fakeGitPath} ${process.env
|
|
101
|
-
Path: `${gitBinDirectory}${path.delimiter}${process.env
|
|
100
|
+
NODE_OPTIONS: `--require=${fakeGitPath} ${process.env['NODE_OPTIONS'] ?? ''}`,
|
|
101
|
+
Path: `${gitBinDirectory}${path.delimiter}${process.env['Path'] ?? ''}`,
|
|
102
102
|
SCAFFOLDFY_FAKE_GIT_MODE: 'preload',
|
|
103
103
|
}),
|
|
104
104
|
WORKSPACE_APPS: workspaceApps,
|
|
@@ -124,13 +124,13 @@ describe('workspace-package-generator – add-dependencies script', () => {
|
|
|
124
124
|
const initial = { name: 'test-pkg', dependencies: {} };
|
|
125
125
|
const result = runAddDeps(initial, 'lodash axios');
|
|
126
126
|
|
|
127
|
-
expect(result
|
|
127
|
+
expect(result['dependencies']).toMatchObject({ lodash: '*', axios: '*' });
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
it('should sort dependencies alphabetically', () => {
|
|
131
131
|
const initial = { name: 'test-pkg', dependencies: {} };
|
|
132
132
|
const result = runAddDeps(initial, 'zod axios chalk');
|
|
133
|
-
const keys = Object.keys(result
|
|
133
|
+
const keys = Object.keys(result['dependencies'] as Record<string, string>);
|
|
134
134
|
|
|
135
135
|
expect(keys).toEqual([...keys].sort());
|
|
136
136
|
});
|
|
@@ -142,7 +142,7 @@ describe('workspace-package-generator – add-dependencies script', () => {
|
|
|
142
142
|
devDependencies: { zod: '^3.0.0', axios: '^1.0.0', chalk: '^5.0.0' },
|
|
143
143
|
};
|
|
144
144
|
const result = runAddDeps(initial, 'vitest');
|
|
145
|
-
const keys = Object.keys(result
|
|
145
|
+
const keys = Object.keys(result['devDependencies'] as Record<string, string>);
|
|
146
146
|
|
|
147
147
|
expect(keys).toEqual([...keys].sort());
|
|
148
148
|
});
|