ソースを参照

Chore: remove `.swcrc` for script

SukkaW 7 ヶ月 前
コミット
b67c67a65d
3 ファイル変更6 行追加21 行削除
  1. 0 14
      .swcrc
  2. 3 4
      package.json
  3. 3 3
      tsconfig.json

+ 0 - 14
.swcrc

@@ -1,14 +0,0 @@
-{
-  "$schema": "https://swc.rs/schema.json",
-  "jsc": {
-    "target": "esnext",
-    "parser": {
-      "syntax": "typescript",
-      "dynamicImport": true
-    }
-  },
-  "module": {
-    "type": "commonjs",
-    "ignoreDynamic": true
-  }
-}

+ 3 - 4
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",

+ 3 - 3
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,