From 3d73511e86a807a1bf0d54a2c95d4af0ec8205c8 Mon Sep 17 00:00:00 2001 From: bokuweb Date: Mon, 30 Sep 2024 10:32:35 +0900 Subject: [PATCH] fix: ci --- dist/action.yml | 2 +- package.json | 2 +- tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/action.yml b/dist/action.yml index 76717bb1..d00b7f2c 100644 --- a/dist/action.yml +++ b/dist/action.yml @@ -43,5 +43,5 @@ inputs: required: false runs: using: "node20" - main: "lib/index.js" + main: "lib/index.mjs" diff --git a/package.json b/package.json index a3abf33e..376594f2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "tsc", "package:entry": "ncc build node_modules/reg-cli/dist/entry.mjs -o dist/lib && mv dist/lib/index.mjs dist/lib/entry.mjs", "package:worker": "ncc build node_modules/reg-cli/dist/worker.mjs -o dist/lib && mv dist/lib/index.mjs dist/lib/worker.mjs", - "package": "npm run build && npm run package:entry && npm run package:worker && ncc build --source-map --license licenses.txt -o dist/lib" + "package": "npm run build && npm run package:entry && npm run package:worker && ncc build lib/main.js --source-map --license licenses.txt -o dist/lib && mv dist/lib/index.js dist/lib/index.mjs" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index bdcc1209..80f1095d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ "target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, - "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, + "module": "ESNext", // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */