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",
minify: true,
sourcemap: false,
// Mark all node_modules as external - Node.js will handle ESM/CJS interop natively
// This avoids esbuild's require() polyfill which doesn't work in ESM
packages: "external",
// Mark optional peer dependencies as external
// Bundle all dependencies - GitHub Actions doesn't have node_modules
// Only mark optional peer dependencies as external
external: [
"@valibot/to-json-schema",
"effect",
"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
treeShaking: true,
// Drop console statements in production (but keep for debugging)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@pullfrog/action",
"version": "0.0.76",
"version": "0.0.77",
"type": "module",
"files": [
"index.js",