From 629b5a31f044de2c99580f714a86b922479c8b66 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:38:19 +0000 Subject: [PATCH] fix(examples/webpack): simplify webpack scripts in minimal example Remove unnecessary ts-node config wrapper from most webpack commands to make the example more straightforward and easier to understand. Only keep the ts-node config for watch command where it's needed. --- examples/webpack-minimal/package.json | 11 +++++------ .../webpack-minimal/tsconfig-for-webpack-config.json | 12 ------------ 2 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 examples/webpack-minimal/tsconfig-for-webpack-config.json diff --git a/examples/webpack-minimal/package.json b/examples/webpack-minimal/package.json index a96e6902..a0133e3d 100644 --- a/examples/webpack-minimal/package.json +++ b/examples/webpack-minimal/package.json @@ -17,12 +17,11 @@ "workbox-webpack-plugin": "^7.3.0" }, "scripts": { - "build": "npm run register-config-webpack-to-ts-node webpack --mode=production --node-env=production", - "build:dev": "npm run register-config-webpack-to-ts-node webpack --mode=development", - "build:prod": "npm run register-config-webpack-to-ts-node webpack --mode=production --node-env=production", - "watch": "npm run register-config-webpack-to-ts-node webpack --watch", - "serve": "npm run register-config-webpack-to-ts-node webpack serve", - "register-config-webpack-to-ts-node": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\"", + "build": "webpack --mode=production --node-env=production", + "build:dev": "webpack --mode=development", + "build:prod": "webpack --mode=production --node-env=production", + "watch": "register-config-webpack-to-ts-node webpack --watch", + "serve": "webpack serve", "prepare": "ts-patch install && typia patch" }, "dependencies": { diff --git a/examples/webpack-minimal/tsconfig-for-webpack-config.json b/examples/webpack-minimal/tsconfig-for-webpack-config.json deleted file mode 100644 index f4ac9031..00000000 --- a/examples/webpack-minimal/tsconfig-for-webpack-config.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "allowSyntheticDefaultImports": true, - "esModuleInterop": true - }, - "include": [ - "webpack.config.ts" - ] -}