try again
This commit is contained in:
+6
-4
@@ -11,15 +11,17 @@ await build({
|
|||||||
target: "node20",
|
target: "node20",
|
||||||
minify: true,
|
minify: true,
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
// Mark all node_modules as external - Node.js will handle ESM/CJS interop natively
|
// Bundle all dependencies - GitHub Actions doesn't have node_modules
|
||||||
// This avoids esbuild's require() polyfill which doesn't work in ESM
|
// Only mark optional peer dependencies as external
|
||||||
packages: "external",
|
|
||||||
// Mark optional peer dependencies as external
|
|
||||||
external: [
|
external: [
|
||||||
"@valibot/to-json-schema",
|
"@valibot/to-json-schema",
|
||||||
"effect",
|
"effect",
|
||||||
"sury",
|
"sury",
|
||||||
],
|
],
|
||||||
|
// Provide a proper require shim for CommonJS modules bundled into ESM
|
||||||
|
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);`,
|
||||||
|
},
|
||||||
// Enable tree-shaking to remove unused code
|
// Enable tree-shaking to remove unused code
|
||||||
treeShaking: true,
|
treeShaking: true,
|
||||||
// Drop console statements in production (but keep for debugging)
|
// Drop console statements in production (but keep for debugging)
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pullfrog/action",
|
"name": "@pullfrog/action",
|
||||||
"version": "0.0.76",
|
"version": "0.0.77",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user