Skip to content

Commit

Permalink
update cjs node target
Browse files Browse the repository at this point in the history
  • Loading branch information
rawpixel-vincent committed Mar 14, 2024
1 parent 0d4a937 commit b620949
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "string-literal-list",
"version": "1.14.0",
"version": "1.15.0",
"description": "an array for string literal",
"main": "stringList.js",
"types": "stringList.d.ts",
Expand Down Expand Up @@ -31,8 +31,8 @@
"lint": "eslint --fix \"./*.js\"",
"lint:ci": "eslint . --ext .js",
"build": "npm run build:main && npm run build:strict",
"build:strict": "esbuild ./strict.js --bundle --format=cjs --keep-names --outfile=strict.cjs",
"build:main": "esbuild ./stringList.js --bundle --format=cjs --keep-names --outfile=stringList.cjs",
"build:strict": "esbuild ./strict.js --bundle --format=cjs --keep-names --outfile=strict.cjs --target=node16",
"build:main": "esbuild ./stringList.js --bundle --format=cjs --keep-names --outfile=stringList.cjs --target=node16",
"prepare": "husky"
},
"author": "Vincent Baronnet",
Expand Down
7 changes: 3 additions & 4 deletions strict.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2129,10 +2129,7 @@ var freezeIfImmutable = /* @__PURE__ */ __name((source, target) => {
}
return target;
}, "freezeIfImmutable");
var SL = class _SL extends Array {
static {
__name(this, "SL");
}
var _SL = class _SL extends Array {
infered = {
Union: void 0,
Tuple: void 0,
Expand Down Expand Up @@ -2358,6 +2355,8 @@ var SL = class _SL extends Array {
return mut.with.apply(mut, arguments);
}
};
__name(_SL, "SL");
var SL = _SL;
var ARRAY_IN_PLACE_MUTATION = Object.freeze({
push: "push",
unshift: "unshift",
Expand Down
7 changes: 3 additions & 4 deletions stringList.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2129,10 +2129,7 @@ var freezeIfImmutable = /* @__PURE__ */ __name((source, target) => {
}
return target;
}, "freezeIfImmutable");
var SL = class _SL extends Array {
static {
__name(this, "SL");
}
var _SL = class _SL extends Array {
infered = {
Union: void 0,
Tuple: void 0,
Expand Down Expand Up @@ -2358,6 +2355,8 @@ var SL = class _SL extends Array {
return mut.with.apply(mut, arguments);
}
};
__name(_SL, "SL");
var SL = _SL;
var ARRAY_IN_PLACE_MUTATION = Object.freeze({
push: "push",
unshift: "unshift",
Expand Down

0 comments on commit b620949

Please sign in to comment.