diff --git a/.swcrc b/.swcrc deleted file mode 100644 index 65a083f9..00000000 --- a/.swcrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://swc.rs/schema.json", - "jsc": { - "target": "esnext", - "parser": { - "syntax": "typescript", - "dynamicImport": true - } - }, - "module": { - "type": "commonjs", - "ignoreDynamic": true - } -} diff --git a/package.json b/package.json index dddace7a..1fa7dea3 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,12 @@ }, "type": "commonjs", "scripts": { - "node": "SWCRC=true node -r @swc-node/register", - "dexnode": "SWCRC=true dexnode -r @swc-node/register", + "node": "SWC_NODE_IGNORE_DYNAMIC=true node -r @swc-node/register", + "dexnode": "SWC_NODE_IGNORE_DYNAMIC=true dexnode -r @swc-node/register", "build": "pnpm run node ./Build/index.ts", "build-profile": "pnpm run dexnode -r @swc-node/register ./Build/index.ts", - "build-webstream": "ENABLE_EXPERIMENTAL_WEBSTREAMS=true pnpm run node ./Build/index.ts", "lint": "eslint --format=sukka .", - "test": "SWCRC=true SWC_NODE_PROJECT=tsconfig.test.json mocha --require @swc-node/register --watch-extensions ts,tsx" + "test": "SWC_NODE_IGNORE_DYNAMIC=true SWC_NODE_PROJECT=tsconfig.test.json mocha --require @swc-node/register --watch-extensions ts,tsx" }, "author": "", "license": "ISC", diff --git a/tsconfig.json b/tsconfig.json index c95fdb82..caa3ffe4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,13 +2,13 @@ "compilerOptions": { "target": "esnext", "lib": ["ESNext", "ESNext.Iterator"], - "moduleDetection": "force", - "module": "esnext", - "moduleResolution": "bundler", + "module": "nodenext", + "moduleResolution": "nodenext", "allowImportingTsExtensions": true, "allowJs": true, "noEmit": true, "allowSyntheticDefaultImports": true, + "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "strictNullChecks": true,