diff --git a/entry.js b/entry.js index 805421d..062ee29 100755 --- a/entry.js +++ b/entry.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -import { createRequire } from 'module'; import { fileURLToPath } from 'url'; import { dirname } from 'path'; const require = createRequire(import.meta.url); const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); +import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __dirnameFn } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __dirnameFn(__filename); var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -85807,7 +85807,7 @@ function query({ // package.json var package_default = { name: "@pullfrog/action", - version: "0.0.81", + version: "0.0.82", type: "module", files: [ "index.js", diff --git a/esbuild.config.js b/esbuild.config.js index af5bab3..cc00eb1 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -19,8 +19,9 @@ await build({ "sury", ], // Provide a proper require shim for CommonJS modules bundled into ESM + // We use a unique variable name to avoid conflicts with bundled imports banner: { - js: `import { createRequire } from 'module'; import { fileURLToPath } from 'url'; import { dirname } from 'path'; const require = createRequire(import.meta.url); const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename);`, + js: `import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __dirnameFn } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __dirnameFn(__filename);`, }, // Enable tree-shaking to remove unused code treeShaking: true, diff --git a/package.json b/package.json index 0cc5ebf..03835ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pullfrog/action", - "version": "0.0.81", + "version": "0.0.82", "type": "module", "files": [ "index.js",