create-template-project 1.5.16 → 1.5.18
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/dist/config/dependencies.json +13 -13
- package/dist/index.js +33 -2
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"vite": {
|
|
4
|
-
"version": "8.1.
|
|
4
|
+
"version": "8.1.4",
|
|
5
5
|
"description": "Native-ESM powered web dev build tool"
|
|
6
6
|
},
|
|
7
7
|
"@vitejs/plugin-react": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"description": "The default Vite plugin for React projects."
|
|
10
10
|
},
|
|
11
11
|
"@vitest/browser": {
|
|
12
|
-
"version": "4.1.
|
|
12
|
+
"version": "4.1.10",
|
|
13
13
|
"description": "Run Vitest in the browser."
|
|
14
14
|
},
|
|
15
15
|
"@vitest/browser-playwright": {
|
|
16
|
-
"version": "4.1.
|
|
16
|
+
"version": "4.1.10",
|
|
17
17
|
"description": "Playwright provider for Vitest browser mode."
|
|
18
18
|
},
|
|
19
19
|
"playwright": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"description": "A tiny JavaScript debugging utility modelled after Node.js core debugging technique."
|
|
26
26
|
},
|
|
27
27
|
"@commitlint/cli": {
|
|
28
|
-
"version": "21.1
|
|
28
|
+
"version": "21.2.1",
|
|
29
29
|
"description": "Lint commit messages to ensure they follow conventional commits."
|
|
30
30
|
},
|
|
31
31
|
"@commitlint/config-conventional": {
|
|
32
|
-
"version": "21.
|
|
32
|
+
"version": "21.2.0",
|
|
33
33
|
"description": "Shareable commitlint config enforcing conventional commits."
|
|
34
34
|
},
|
|
35
35
|
"@types/debug": {
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"description": "TypeScript definitions for debug."
|
|
38
38
|
},
|
|
39
39
|
"@types/node": {
|
|
40
|
-
"version": "26.
|
|
40
|
+
"version": "26.1.1",
|
|
41
41
|
"description": "TypeScript definitions for Node.js."
|
|
42
42
|
},
|
|
43
43
|
"@vitest/coverage-v8": {
|
|
44
|
-
"version": "4.1.
|
|
44
|
+
"version": "4.1.10",
|
|
45
45
|
"description": "V8 coverage provider for Vitest."
|
|
46
46
|
},
|
|
47
47
|
"conventional-changelog": {
|
|
48
|
-
"version": "8.
|
|
48
|
+
"version": "8.1.0",
|
|
49
49
|
"description": "Generate a changelog from git metadata."
|
|
50
50
|
},
|
|
51
51
|
"conventional-changelog-angular": {
|
|
52
|
-
"version": "9.2.
|
|
52
|
+
"version": "9.2.1",
|
|
53
53
|
"description": "Angular preset for conventional-changelog."
|
|
54
54
|
},
|
|
55
55
|
"husky": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"description": "Modern native git hooks made easy."
|
|
58
58
|
},
|
|
59
59
|
"oxlint": {
|
|
60
|
-
"version": "1.
|
|
60
|
+
"version": "1.73.0",
|
|
61
61
|
"description": "A JavaScript linter written in Rust."
|
|
62
62
|
},
|
|
63
63
|
"oxlint-tsgolint": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"description": "A superset of JavaScript that compiles to clean JavaScript output."
|
|
74
74
|
},
|
|
75
75
|
"vitest": {
|
|
76
|
-
"version": "4.1.
|
|
76
|
+
"version": "4.1.10",
|
|
77
77
|
"description": "A Vite-native unit test framework."
|
|
78
78
|
},
|
|
79
79
|
"commander": {
|
|
@@ -105,11 +105,11 @@
|
|
|
105
105
|
"description": "React package for working with the DOM."
|
|
106
106
|
},
|
|
107
107
|
"@mui/material": {
|
|
108
|
-
"version": "9.
|
|
108
|
+
"version": "9.2.0",
|
|
109
109
|
"description": "Material UI components."
|
|
110
110
|
},
|
|
111
111
|
"@mui/icons-material": {
|
|
112
|
-
"version": "9.
|
|
112
|
+
"version": "9.2.0",
|
|
113
113
|
"description": "Material Design icons distributed as SVG React components."
|
|
114
114
|
},
|
|
115
115
|
"@emotion/react": {
|
package/dist/index.js
CHANGED
|
@@ -1026,6 +1026,8 @@ Restrictions & Behavior:
|
|
|
1026
1026
|
//#region src/generators/project.ts
|
|
1027
1027
|
var debug$1 = debugLib("create-template-project:generator");
|
|
1028
1028
|
var moduleDir = import.meta.dirname;
|
|
1029
|
+
var PNPM_PACKAGE_MANAGER_VERSION = "pnpm@11.13.0";
|
|
1030
|
+
var PNPM_NPMRC_CONTENT = "resolution-mode=highest\nnode-linker=hoisted\n";
|
|
1029
1031
|
var pathExists = async (filePath) => {
|
|
1030
1032
|
try {
|
|
1031
1033
|
await fs.access(filePath);
|
|
@@ -1453,6 +1455,30 @@ var generateProject = async (opts) => {
|
|
|
1453
1455
|
}
|
|
1454
1456
|
}
|
|
1455
1457
|
const pm = opts.packageManager;
|
|
1458
|
+
if (pm === "pnpm") finalPkg.packageManager = PNPM_PACKAGE_MANAGER_VERSION;
|
|
1459
|
+
const npmrcPath = path.join(projectDir, ".npmrc");
|
|
1460
|
+
const npmrcExists = await pathExists(npmrcPath);
|
|
1461
|
+
if (isUpdate && npmrcExists) actions.push({
|
|
1462
|
+
type: "SKIP",
|
|
1463
|
+
path: ".npmrc",
|
|
1464
|
+
reason: "Existing package manager configuration - preserved on update"
|
|
1465
|
+
});
|
|
1466
|
+
else if (!npmrcExists) {
|
|
1467
|
+
const npmrcContent = pm === "pnpm" ? PNPM_NPMRC_CONTENT : "";
|
|
1468
|
+
plannedDiffs.push({
|
|
1469
|
+
path: ".npmrc",
|
|
1470
|
+
before: "",
|
|
1471
|
+
after: npmrcContent
|
|
1472
|
+
});
|
|
1473
|
+
actions.push({
|
|
1474
|
+
type: "ADD",
|
|
1475
|
+
path: ".npmrc",
|
|
1476
|
+
reason: "Initial package manager configuration"
|
|
1477
|
+
});
|
|
1478
|
+
pendingOperations.push(async () => {
|
|
1479
|
+
await fs.writeFile(npmrcPath, npmrcContent);
|
|
1480
|
+
});
|
|
1481
|
+
}
|
|
1456
1482
|
if (pm === "pnpm" && finalPkg.workspaces) {
|
|
1457
1483
|
debug$1("Creating pnpm-workspace.yaml");
|
|
1458
1484
|
const workspaceYaml = `packages:\n${finalPkg.workspaces.map((w) => ` - '${w}'`).join("\n")}\n`;
|
|
@@ -1583,8 +1609,13 @@ var generateProject = async (opts) => {
|
|
|
1583
1609
|
const s = spinner();
|
|
1584
1610
|
s.start(`Installing dependencies using ${pm}...`);
|
|
1585
1611
|
try {
|
|
1586
|
-
|
|
1587
|
-
|
|
1612
|
+
const installArgs = pm === "pnpm" ? [
|
|
1613
|
+
"install",
|
|
1614
|
+
"--config.resolution-mode=highest",
|
|
1615
|
+
"--config.node-linker=hoisted"
|
|
1616
|
+
] : ["install"];
|
|
1617
|
+
debug$1("Executing: %s %s", pm, installArgs.join(" "));
|
|
1618
|
+
await execa(pm, installArgs, {
|
|
1588
1619
|
cwd: projectDir,
|
|
1589
1620
|
stdio,
|
|
1590
1621
|
preferLocal: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-template-project",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An ultra-modular, type-safe Node.js CLI tool used to scaffold new project templates (CLI, Webpage, Webapp, Fullstack) with best-practice configurations pre-installed.",
|
|
6
6
|
"keywords": [
|
|
@@ -52,31 +52,31 @@
|
|
|
52
52
|
"./package.json": "./package.json"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@clack/prompts": "1.
|
|
55
|
+
"@clack/prompts": "1.7.0",
|
|
56
56
|
"commander": "15.0.0",
|
|
57
57
|
"debug": "4.4.3",
|
|
58
58
|
"execa": "9.6.1",
|
|
59
59
|
"zod": "4.4.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@commitlint/cli": "21.1
|
|
63
|
-
"@commitlint/config-conventional": "21.
|
|
62
|
+
"@commitlint/cli": "21.2.1",
|
|
63
|
+
"@commitlint/config-conventional": "21.2.0",
|
|
64
64
|
"@types/cli-progress": "3.11.6",
|
|
65
65
|
"@types/debug": "4.1.13",
|
|
66
|
-
"@types/node": "26.
|
|
67
|
-
"@vitest/coverage-v8": "4.1.
|
|
68
|
-
"conventional-changelog": "8.
|
|
69
|
-
"conventional-changelog-angular": "9.2.
|
|
66
|
+
"@types/node": "26.1.1",
|
|
67
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
68
|
+
"conventional-changelog": "8.1.0",
|
|
69
|
+
"conventional-changelog-angular": "9.2.1",
|
|
70
70
|
"eslint-plugin-regexp": "3.1.1",
|
|
71
71
|
"husky": "9.1.7",
|
|
72
|
-
"oxfmt": "0.
|
|
73
|
-
"oxlint": "1.
|
|
72
|
+
"oxfmt": "0.58.0",
|
|
73
|
+
"oxlint": "1.73.0",
|
|
74
74
|
"oxlint-tsgolint": "0.23.0",
|
|
75
75
|
"release-it": "20.2.1",
|
|
76
76
|
"rimraf": "6.1.3",
|
|
77
77
|
"typescript": "6.0.3",
|
|
78
|
-
"vite": "8.1.
|
|
79
|
-
"vitest": "4.1.
|
|
78
|
+
"vite": "8.1.4",
|
|
79
|
+
"vitest": "4.1.10"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22"
|