Skip to content

Commit 7ecd383

Browse files
chore: update webpack config (#4488)
1 parent d0f1392 commit 7ecd383

File tree

77 files changed

+333
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+333
-276
lines changed

eslint.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { globalIgnores, defineConfig } from "eslint/config";
1+
import { defineConfig, globalIgnores } from "eslint/config";
22
import config from "eslint-config-webpack";
33
import configs from "eslint-config-webpack/configs.js";
44

@@ -23,6 +23,7 @@ export default defineConfig([
2323
// We are CLI, so using `console.log` is normal
2424
"no-console": "off",
2525
strict: "off",
26+
"n/no-process-exit": "off",
2627
},
2728
},
2829
{
@@ -31,6 +32,7 @@ export default defineConfig([
3132
rules: {
3233
// We are CLI, so using `console.log` is normal
3334
"no-console": "off",
35+
"n/no-process-exit": "off",
3436
},
3537
},
3638
]);

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
{
22
"name": "webpack-cli-monorepo",
3-
"description": "CLI for webpack & friends",
4-
"license": "MIT",
53
"private": true,
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/webpack/webpack-cli.git"
9-
},
10-
"funding": {
11-
"type": "opencollective",
12-
"url": "https://opencollective.com/webpack"
13-
},
14-
"engines": {
15-
"node": ">=18.12.0"
16-
},
4+
"description": "CLI for webpack & friends",
175
"keywords": [
186
"webpack",
197
"cli",
@@ -22,6 +10,15 @@
2210
"bundler",
2311
"web"
2412
],
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/webpack/webpack-cli.git"
16+
},
17+
"funding": {
18+
"type": "opencollective",
19+
"url": "https://opencollective.com/webpack"
20+
},
21+
"license": "MIT",
2522
"workspaces": [
2623
"./packages/*"
2724
],
@@ -52,9 +49,6 @@
5249
"update:docs": "node ./scripts/update-docs",
5350
"prepare": "husky"
5451
},
55-
"peerDependencies": {
56-
"webpack": "5.x.x"
57-
},
5852
"devDependencies": {
5953
"@babel/core": "^7.25.2",
6054
"@babel/preset-env": "^7.25.2",
@@ -74,7 +68,7 @@
7468
"css-loader": "^7.1.2",
7569
"del-cli": "^6.0.0",
7670
"eslint": "^9.29.0",
77-
"eslint-config-webpack": "^4.1.4",
71+
"eslint-config-webpack": "^4.2.2",
7872
"eslint-config-prettier": "^10.1.5",
7973
"eslint-plugin-import": "^2.32.0",
8074
"eslint-plugin-jest": "^29.0.1",
@@ -106,5 +100,11 @@
106100
"webpack": "^5.99.1",
107101
"webpack-bundle-analyzer": "^4.5.0",
108102
"webpack-dev-server": "^5.1.0"
103+
},
104+
"peerDependencies": {
105+
"webpack": "5.x.x"
106+
},
107+
"engines": {
108+
"node": ">=18.12.0"
109109
}
110110
}

packages/configtest/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
"name": "@webpack-cli/configtest",
33
"version": "3.0.1",
44
"description": "Validate a webpack configuration.",
5-
"main": "lib/index.js",
6-
"types": "lib/index.d.ts",
7-
"license": "MIT",
8-
"engines": {
9-
"node": ">=18.12.0"
10-
},
11-
"publishConfig": {
12-
"access": "public"
13-
},
5+
"homepage": "https://github.com/webpack/webpack-cli/tree/master/packages/configtest",
146
"repository": {
157
"type": "git",
168
"url": "https://github.com/webpack/webpack-cli.git"
179
},
18-
"homepage": "https://github.com/webpack/webpack-cli/tree/master/packages/configtest",
10+
"license": "MIT",
11+
"main": "lib/index.js",
12+
"types": "lib/index.d.ts",
1913
"files": [
2014
"lib"
2115
],
2216
"peerDependencies": {
2317
"webpack": "^5.82.0",
2418
"webpack-cli": "6.x.x"
19+
},
20+
"engines": {
21+
"node": ">=18.12.0"
22+
},
23+
"publishConfig": {
24+
"access": "public"
2525
}
2626
}

packages/create-webpack-app/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,42 @@
22
"name": "create-new-webpack-app",
33
"version": "1.1.1",
44
"description": "CLI for scaffolding webpack projects using default config, framework templates, loader or plugins templates",
5-
"license": "MIT",
5+
"keywords": [
6+
"webpack",
7+
"cli",
8+
"scaffolding",
9+
"module",
10+
"bundler",
11+
"web",
12+
"frameworks"
13+
],
14+
"homepage": "https://github.com/webpack/webpack-cli/tree/master/packages/create-webpack-app",
15+
"bugs": "https://github.com/webpack/webpack-cli/issues",
616
"repository": {
717
"type": "git",
818
"url": "https://github.com/webpack-cli/create-webpack-app.git"
919
},
10-
"homepage": "https://github.com/webpack/webpack-cli/tree/master/packages/create-webpack-app",
11-
"bugs": "https://github.com/webpack/webpack-cli/issues",
1220
"funding": {
1321
"type": "opencollective",
1422
"url": "https://opencollective.com/webpack"
1523
},
16-
"bin": {
17-
"create-webpack-app": "./bin/cli.js"
18-
},
24+
"license": "MIT",
1925
"type": "module",
2026
"main": "./lib/index.js",
21-
"scripts": {
22-
"build": "tsc --build",
23-
"watch": "tsc --watch"
24-
},
25-
"engines": {
26-
"node": ">=18.12.0"
27+
"bin": {
28+
"create-webpack-app": "./bin/cli.js"
2729
},
28-
"keywords": [
29-
"webpack",
30-
"cli",
31-
"scaffolding",
32-
"module",
33-
"bundler",
34-
"web",
35-
"frameworks"
36-
],
3730
"files": [
3831
"bin",
3932
"lib",
4033
"templates",
4134
"!**/*__tests__",
4235
"!**/*.d.ts"
4336
],
37+
"scripts": {
38+
"build": "tsc --build",
39+
"watch": "tsc --watch"
40+
},
4441
"dependencies": {
4542
"@inquirer/expand": "^4.0.3",
4643
"@inquirer/select": "^4.0.3",
@@ -53,5 +50,8 @@
5350
"devDependencies": {
5451
"@types/cross-spawn": "^6.0.6",
5552
"@types/ejs": "^3.1.5"
53+
},
54+
"engines": {
55+
"node": ">=18.12.0"
5656
}
5757
}

packages/create-webpack-app/src/generators/init/default.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type Answers, type ActionType, type FileRecord } from "../../types.js";
2-
import { type NodePlopAPI, type DynamicActionsFunction } from "node-plop";
31
import { dirname, join, resolve } from "node:path";
42
import { fileURLToPath } from "node:url";
3+
import { type DynamicActionsFunction, type NodePlopAPI } from "node-plop";
4+
import { type ActionType, type Answers, type FileRecord } from "../../types.js";
55

66
export default async function defaultInitGenerator(plop: NodePlopAPI) {
77
const __dirname = dirname(fileURLToPath(import.meta.url));

packages/create-webpack-app/src/generators/init/react.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type Answers, type ActionType, type FileRecord } from "../../types.js";
2-
import { type NodePlopAPI, type DynamicActionsFunction } from "node-plop";
3-
import { dirname, resolve, join } from "node:path";
1+
import { dirname, join, resolve } from "node:path";
42
import { fileURLToPath } from "node:url";
3+
import { type DynamicActionsFunction, type NodePlopAPI } from "node-plop";
4+
import { type ActionType, type Answers, type FileRecord } from "../../types.js";
55

66
export default async function reactInitGenerator(plop: NodePlopAPI) {
77
const __dirname = dirname(fileURLToPath(import.meta.url));

packages/create-webpack-app/src/generators/init/svelte.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type Answers, type ActionType, type FileRecord } from "../../types.js";
2-
import { type NodePlopAPI, type DynamicActionsFunction } from "node-plop";
31
import { dirname, join, resolve } from "node:path";
42
import { fileURLToPath } from "node:url";
3+
import { type DynamicActionsFunction, type NodePlopAPI } from "node-plop";
4+
import { type ActionType, type Answers, type FileRecord } from "../../types.js";
55

66
export default async function svelteInitGenerator(plop: NodePlopAPI) {
77
const __dirname = dirname(fileURLToPath(import.meta.url));

packages/create-webpack-app/src/generators/init/vue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type Answers, type ActionType, type FileRecord } from "../../types.js";
2-
import { type NodePlopAPI, type DynamicActionsFunction } from "node-plop";
31
import { dirname, join, resolve } from "node:path";
42
import { fileURLToPath } from "node:url";
3+
import { type DynamicActionsFunction, type NodePlopAPI } from "node-plop";
4+
import { type ActionType, type Answers, type FileRecord } from "../../types.js";
55

66
export default async function vueInitGenerator(plop: NodePlopAPI) {
77
const __dirname = dirname(fileURLToPath(import.meta.url));

packages/create-webpack-app/src/generators/loader/default.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type LoaderAnswers, type ActionType, type FileRecord } from "../../types.js";
2-
import { type NodePlopAPI, type DynamicActionsFunction } from "node-plop";
31
import { dirname, join, resolve } from "node:path";
42
import { fileURLToPath } from "node:url";
3+
import { type DynamicActionsFunction, type NodePlopAPI } from "node-plop";
4+
import { type ActionType, type FileRecord, type LoaderAnswers } from "../../types.js";
55
import { logger } from "../../utils/logger.js";
66

77
export default async function loaderGenerator(plop: NodePlopAPI) {

packages/create-webpack-app/src/generators/plugin/default.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type ActionType, type FileRecord, PluginAnswers } from "../../types.js";
2-
import { type NodePlopAPI, type DynamicActionsFunction } from "node-plop";
31
import { dirname, join, resolve } from "node:path";
42
import { fileURLToPath } from "node:url";
3+
import { type DynamicActionsFunction, type NodePlopAPI } from "node-plop";
4+
import { type ActionType, type FileRecord, PluginAnswers } from "../../types.js";
55
import { logger } from "../../utils/logger.js";
66

77
export default async function pluginGenerator(plop: NodePlopAPI) {

0 commit comments

Comments
 (0)