diff --git a/README.md b/README.md index fb2c443..a51ee1f 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,16 @@ npm install --save-dev @appos.space/plugin-types npm install @appos.space/view-builders @appos.space/plugin-utils ``` +> **Runtime support:** the runtime packages (`view-builders`, `plugin-utils`) +> ship ESM only. The standard plugin pipeline (esbuild IIFE bundle), `tsx`, and +> native ESM `import` work on any Node line. Plain CommonJS `require()` of these +> packages relies on native `require(esm)`, which needs Node +> `^20.19.0 || ^22.12.0 || >=23` — on older lines (e.g. Node 18, EOL since +> April 2025) use `import` or a bundler instead. This floor applies only to the +> `require()` path, so it is documented here rather than as a package `engines` +> constraint (which would block install for ESM/bundler consumers that work +> fine on older Node lines). + Minimal example: ```ts diff --git a/packages/plugin-utils/package.json b/packages/plugin-utils/package.json index c04ed64..fd97656 100644 --- a/packages/plugin-utils/package.json +++ b/packages/plugin-utils/package.json @@ -7,8 +7,9 @@ "types": "dist/index.d.ts", "exports": { ".": { + "types": "./dist/index.d.ts", "import": "./dist/index.js", - "types": "./dist/index.d.ts" + "default": "./dist/index.js" } }, "files": [ diff --git a/packages/view-builders/package.json b/packages/view-builders/package.json index d22a65c..9949a0a 100644 --- a/packages/view-builders/package.json +++ b/packages/view-builders/package.json @@ -7,8 +7,9 @@ "types": "dist/index.d.ts", "exports": { ".": { + "types": "./dist/index.d.ts", "import": "./dist/index.js", - "types": "./dist/index.d.ts" + "default": "./dist/index.js" } }, "files": [ diff --git a/release.sh b/release.sh index 25ff6ab..f4d2a09 100755 --- a/release.sh +++ b/release.sh @@ -19,7 +19,7 @@ npm run build npm test echo "==> Bumping all packages to $VERSION..." -npm version "$VERSION" --workspaces --include-workspace-root --no-git-tag-version +npm version "$VERSION" --workspaces --include-workspace-root --no-git-tag-version --allow-same-version echo "==> Committing version bump..." git add packages/*/package.json package.json package-lock.json