Skip to content

Commit 6965b0a

Browse files
committed
update readme/build script/npm ignore file
1 parent 8e5f256 commit 6965b0a

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ _*.txt
2626
*.ignore
2727
rollup.*.js
2828
biome.json
29+
biome.jsonc
2930
vite.config.js

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. Dates are d
88
99
- BREAKING: ESM-only packages moving forward; removed CommonJS builds.
1010
- BREAKING: Node.js >= 20.19 required
11+
- Upgrade all outdated dependencies
1112
- Upgrade ESLint 9 + TypeScript ESLint 8, Prettier 3.8, Vite 7, Vitest 4, and TypeScript 5.9
1213
- Docs updated for ESM-only usage and configuration
1314

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bun add node-ray
4545
## Requirements
4646

4747
- Node.js >= 20.19
48-
- ESM-only (CommonJS `require` is not supported)
48+
- ESM-only (CommonJS is no longer supported; use v2.x for `require` support)
4949

5050
## Available environments
5151

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const globalConfig = {
6262
config.entry = resolve(globalConfig.basePath, config.entry);
6363
config.minify = config.outfile.includes('.min.');
6464
config.standalone = config.outfile.includes('standalone');
65-
config.format = config.outfile.endsWith('.js') ? 'es' : 'cjs';
65+
config.format = 'es';
6666
if (config.standalone) {
6767
config.format = 'iife';
6868
}

0 commit comments

Comments
 (0)