try again

This commit is contained in:
David Blass
2025-11-06 19:08:25 -05:00
parent b9c15e9f38
commit 599264694e
3 changed files with 365 additions and 33 deletions
+358 -28
View File
File diff suppressed because one or more lines are too long
+6 -4
View File
@@ -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
View File
@@ -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",