From e0c56be495db783d3d3a00e8298806178b3e4e81 Mon Sep 17 00:00:00 2001 From: "VL.Y" <1560781+vladimiry@users.noreply.github.com> Date: Wed, 28 Aug 2024 08:24:02 +0300 Subject: [PATCH] wip: fix webpack:shortcut script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9757b9e9..347c06cc 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "scripts/transfer": "pnpm run ts-node:shortcut ./scripts/transfer/index.ts", "electron-builder:shortcut": "npm exec --package=electron-builder -- electron-builder", "ts-node:shortcut": "cross-env TS_NODE_FILES=true node --loader ts-node/esm", - "webpack:shortcut": "cross-env TS_NODE_FILES=true TS_NODE_PROJECT=./webpack-configs/tsconfig.json NODE_OPTIONS=\"--import \\\"data:text/javascript,import { register } from 'node:module'; import { pathToFileURL } from 'node:url'; register('ts-node/esm', pathToFileURL('./'));\\\"\" npm exec --package=webpack-cli -- webpack" + "webpack:shortcut": "cross-env TS_NODE_FILES=true TS_NODE_PROJECT=./webpack-configs/tsconfig.json npm exec --package=webpack-cli --node-options=\"--loader ts-node/esm --experimental-json-modules\" -- webpack" }, "dependencies": { "electron-rpc-api": "10.0.0",