create-webpack-starter 0.2.5 → 0.2.7
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 +34 -1
- package/dist/copier.js +15 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.2.
|
|
3
|
+
## [0.2.7] - 2026-02-09
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Fixed ESM/CommonJS incompatibilities on Node.js 18+ by pinning CLI dependencies to stable CommonJS versions:
|
|
7
|
+
- `inquirer@^8.2.6`
|
|
8
|
+
- `ora@^5.4.1`
|
|
9
|
+
- Prevented CLI crashes caused by `ERR_REQUIRE_ESM` when running under Node.js 18 and CI environments
|
|
10
|
+
|
|
11
|
+
### Improved
|
|
12
|
+
- Improved E2E test stability in CI by running CLI in fully non-interactive mode
|
|
13
|
+
- CLI tests now explicitly pass `--template` flag to avoid interactive prompts in non-TTY environments
|
|
14
|
+
- Ensured consistent CLI behavior across Node.js versions 18, 20, 22+
|
|
15
|
+
|
|
16
|
+
### Notes
|
|
17
|
+
- No changes to CLI public API or user-facing commands
|
|
18
|
+
- This release focuses on runtime compatibility, CI stability, and long-term Node.js support
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## [0.2.6] - 2026-02-08
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
- Ignored `node_modules/` and `dist/` directories when copying templates
|
|
25
|
+
- Prevented leaking local development artifacts into generated projects
|
|
26
|
+
|
|
27
|
+
### Improved
|
|
28
|
+
- Better developer experience for local template development
|
|
29
|
+
- More predictable project output regardless of template workspace state
|
|
30
|
+
|
|
31
|
+
### Notes
|
|
32
|
+
- No changes to CLI API or user-facing commands
|
|
33
|
+
- Templates remain fully standalone after generation
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [0.2.4 - 0.2.5] - 2026-02-07
|
|
4
37
|
|
|
5
38
|
### Added
|
|
6
39
|
- End-to-end (E2E) test suite for CLI behavior
|
package/dist/copier.js
CHANGED
|
@@ -5,10 +5,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.copyTemplate = copyTemplate;
|
|
7
7
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const IGNORED_DIRS = [
|
|
10
|
+
'node_modules',
|
|
11
|
+
'dist',
|
|
12
|
+
];
|
|
8
13
|
/**
|
|
9
14
|
* Copy template directory into target directory.
|
|
10
15
|
* Assumes targetDir does NOT exist.
|
|
16
|
+
* Ignores development-only directories.
|
|
11
17
|
*/
|
|
12
18
|
async function copyTemplate(templatePath, targetDir) {
|
|
13
|
-
await fs_extra_1.default.copy(templatePath, targetDir
|
|
19
|
+
await fs_extra_1.default.copy(templatePath, targetDir, {
|
|
20
|
+
filter: (src) => {
|
|
21
|
+
const relative = path_1.default.relative(templatePath, src);
|
|
22
|
+
// allow root itself
|
|
23
|
+
if (!relative)
|
|
24
|
+
return true;
|
|
25
|
+
return !IGNORED_DIRS.some((dir) => relative === dir || relative.startsWith(`${dir}${path_1.default.sep}`));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
14
28
|
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-webpack-starter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Create a webpack starter with Pug, SCSS, TS and more",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-webpack-starter": "bin/index.js"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/Razerspine/webpack-starter-monorepo.git",
|
|
10
|
+
"url": "git+https://github.com/Razerspine/webpack-starter-monorepo.git",
|
|
11
11
|
"directory": "packages/create-webpack-starter"
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/Razerspine/webpack-starter-monorepo/tree/main/packages/create-webpack-starter#readme",
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/Razerspine/webpack-starter-monorepo/issues"
|
|
16
16
|
},
|
|
17
|
-
|
|
18
17
|
"files": [
|
|
19
18
|
"bin",
|
|
20
19
|
"dist",
|
|
@@ -48,9 +47,9 @@
|
|
|
48
47
|
"dependencies": {
|
|
49
48
|
"commander": "^12.0.0",
|
|
50
49
|
"fs-extra": "^11.2.0",
|
|
51
|
-
"inquirer": "^
|
|
50
|
+
"inquirer": "^8.2.6",
|
|
52
51
|
"kleur": "^4.1.5",
|
|
53
|
-
"ora": "^
|
|
52
|
+
"ora": "^5.4.1"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@types/fs-extra": "^11.0.4",
|