prototyped.js 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.node-version +1 -0
- package/CODEOWNERS +2 -0
- package/README.md +31 -1
- package/build/cjs/object/merge/index.js +10 -3
- package/build/cjs/object/merge/index.js.map +1 -1
- package/build/esm/object/merge/index.js +10 -3
- package/build/esm/object/merge/index.js.map +1 -1
- package/package.json +56 -55
- package/pnpm-workspace.yaml +10 -0
package/.node-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
26.13.0
|
package/CODEOWNERS
ADDED
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ Common **Typescript ready** helpers & prototypes available for both **Server-Sid
|
|
|
23
23
|
## Table of Content <!-- omit in toc -->
|
|
24
24
|
|
|
25
25
|
- [Installation](#installation)
|
|
26
|
+
- [Development](#development)
|
|
27
|
+
- [Releasing](#releasing)
|
|
26
28
|
- [Usage](#usage)
|
|
27
29
|
- [Versioning](#versioning)
|
|
28
30
|
- [Authors](#authors)
|
|
@@ -35,6 +37,34 @@ Common **Typescript ready** helpers & prototypes available for both **Server-Sid
|
|
|
35
37
|
npm i -s prototyped.js
|
|
36
38
|
```
|
|
37
39
|
|
|
40
|
+
The compatibility matrix covers Node.js **14, 16, 18, 20, 22, 24, and 26** on Linux, macOS, and Windows, using the latest patch release of each major. Both CommonJS and native ECMAScript imports are checked against the packed package.
|
|
41
|
+
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
Use the Node.js version in `.node-version` and the pnpm version pinned in `package.json` for development and release builds. Consumer compatibility is tested separately from this tooling runtime.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pnpm install --frozen-lockfile
|
|
48
|
+
pnpm lint
|
|
49
|
+
pnpm build
|
|
50
|
+
pnpm run docs
|
|
51
|
+
pnpm test:ci
|
|
52
|
+
pnpm pack --out artifacts/package.tgz
|
|
53
|
+
pnpm test:package
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The full build uses POSIX shell scripts and runs on Ubuntu in CI and CD. Each compatibility job runs the full unit suite and loads every public JavaScript export from the tarball in CommonJS and native ESM. Codecov uploads are informational; lint, build, test, and package-check failures fail CI.
|
|
57
|
+
|
|
58
|
+
Intel macOS installs the pinned pnpm version through npm because pnpm's standalone installer does not support that platform. Dependencies are installed with the tooling runtime before switching Node versions; compatibility checks invoke Node directly so the package manager's runtime requirements do not limit consumer compatibility.
|
|
59
|
+
|
|
60
|
+
## Releasing
|
|
61
|
+
|
|
62
|
+
Set `package.json` to the intended version, then push the matching `v<version>` tag. CI runs on pull requests, pushes to `master`, and version tags. CI and CD run independently on version tags; CD does not wait for CI to finish or pass.
|
|
63
|
+
|
|
64
|
+
The CD workflow starts with a `changelog` job using `ardalanamini/auto-changelog`. It generates release notes once and exposes the `changelog`, `prerelease`, and `release-id` outputs before requesting publishing approval. The action validates the tag's SemVer format. CD builds the tagged source and runs `pnpm publish`, which handles packing and publishes to npm using `release-id` as the distribution tag: `latest` for stable versions, or the prerelease identifier such as `alpha`, `beta`, or `rc` for prereleases. The GitHub release reuses those release notes and the prerelease flag. Stable releases regenerate and deploy documentation to GitHub Pages; prereleases leave stable documentation unchanged. CD builds its own package and documentation without downloading CI artifacts.
|
|
65
|
+
|
|
66
|
+
Publishing uses [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/), not `NPM_TOKEN`. Before the first release, configure the package's GitHub Actions trusted publisher with owner `ardalanamini`, repository `prototyped.js`, workflow filename `cd.yml`, and environment `npm`. Allow direct publishing if npm offers a staged-publishing option. Existing approval requirements on the `npm`, `release`, and `documents` GitHub environments remain in effect. GitHub Packages is no longer a release destination.
|
|
67
|
+
|
|
38
68
|
## Usage
|
|
39
69
|
|
|
40
70
|
**All documents are available at [here][documents-url]**
|
|
@@ -131,7 +161,7 @@ This project is licensed under the MIT License - see the [LICENSE][license-url]
|
|
|
131
161
|
|
|
132
162
|
[npm-url]: https://www.npmjs.com/package/prototyped.js
|
|
133
163
|
|
|
134
|
-
[build-badge]: https://github.com/ardalanamini/prototyped.js/workflows/
|
|
164
|
+
[build-badge]: https://github.com/ardalanamini/prototyped.js/actions/workflows/ci.yml/badge.svg
|
|
135
165
|
|
|
136
166
|
[build-url]: https://github.com/ardalanamini/prototyped.js/actions
|
|
137
167
|
|
|
@@ -23,9 +23,16 @@ const index_js_1 = __importDefault(require("../keys/index.js"));
|
|
|
23
23
|
*/
|
|
24
24
|
function merge(obj, ...objects) {
|
|
25
25
|
return [obj, ...objects].reduce((prev, obj2) => (0, index_js_1.default)(obj2).reduce((a, k) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
:
|
|
26
|
+
const descriptor = {
|
|
27
|
+
__proto__: null,
|
|
28
|
+
configurable: true,
|
|
29
|
+
enumerable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: utils_js_1.hasOwnProperty.call(prev, k)
|
|
32
|
+
? [].concat(prev[k]).concat(obj2[k])
|
|
33
|
+
: obj2[k],
|
|
34
|
+
};
|
|
35
|
+
Object.defineProperty(prev, k, descriptor);
|
|
29
36
|
return prev;
|
|
30
37
|
}, {}), {});
|
|
31
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/object/merge/index.ts"],"names":[],"mappings":";;;;;AAAA,6CAAgD;AAChD,gEAAoC;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,SAAwB,KAAK,CAC3B,GAA4B,EAC5B,GAAG,OAAuC;IAE1C,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,MAAM,CAC7B,CAAC,IAA6B,EAAE,IAA6B,EAAE,EAAE,CAAC,IAAA,kBAAI,EAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC3F,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/object/merge/index.ts"],"names":[],"mappings":";;;;;AAAA,6CAAgD;AAChD,gEAAoC;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,SAAwB,KAAK,CAC3B,GAA4B,EAC5B,GAAG,OAAuC;IAE1C,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,MAAM,CAC7B,CAAC,IAA6B,EAAE,IAA6B,EAAE,EAAE,CAAC,IAAA,kBAAI,EAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC3F,MAAM,UAAU,GAAG;YACjB,SAAS,EAAK,IAAI;YAClB,YAAY,EAAE,IAAI;YAClB,UAAU,EAAI,IAAI;YAClB,QAAQ,EAAM,IAAI;YAClB,KAAK,EAAS,yBAAc,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gBACxC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAU,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAU,CAAC;gBACtD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;SACZ,CAAC;QAEF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,EACN,EAAE,CACH,CAAC;AACJ,CAAC;AAtBD,wBAsBC","sourcesContent":["import { hasOwnProperty } from \"../../utils.js\";\nimport keys from \"../keys/index.js\";\n\n/**\n * Creates a new object from the combination of two or more objects\n * @param obj\n * @param objects\n * @example\n * const object = {\n * a: [{ x: 2 }, { y: 4 }],\n * b: 1\n * };\n * const other = {\n * a: { z: 3 },\n * b: [2, 3],\n * c: \"foo\"\n * };\n * merge(object, other); // { a: [ { x: 2 }, { y: 4 }, { z: 3 } ], b: [ 1, 2, 3 ], c: \"foo\" }\n */\nexport default function merge(\n obj: Record<string, unknown>,\n ...objects: Array<Record<string, unknown>>\n): Record<string, unknown> {\n return [obj, ...objects].reduce(\n (prev: Record<string, unknown>, obj2: Record<string, unknown>) => keys(obj2).reduce((a, k) => {\n const descriptor = {\n __proto__ : null,\n configurable: true,\n enumerable : true,\n writable : true,\n value : hasOwnProperty.call(prev, k)\n ? [].concat(prev[k] as never).concat(obj2[k] as never)\n : obj2[k],\n };\n\n Object.defineProperty(prev, k, descriptor);\n\n return prev;\n }, {}),\n {},\n );\n}\n"]}
|
|
@@ -18,9 +18,16 @@ import keys from "../keys/index.js";
|
|
|
18
18
|
*/
|
|
19
19
|
export default function merge(obj, ...objects) {
|
|
20
20
|
return [obj, ...objects].reduce((prev, obj2) => keys(obj2).reduce((a, k) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
:
|
|
21
|
+
const descriptor = {
|
|
22
|
+
__proto__: null,
|
|
23
|
+
configurable: true,
|
|
24
|
+
enumerable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: hasOwnProperty.call(prev, k)
|
|
27
|
+
? [].concat(prev[k]).concat(obj2[k])
|
|
28
|
+
: obj2[k],
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(prev, k, descriptor);
|
|
24
31
|
return prev;
|
|
25
32
|
}, {}), {});
|
|
26
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/object/merge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAC3B,GAA4B,EAC5B,GAAG,OAAuC;IAE1C,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,MAAM,CAC7B,CAAC,IAA6B,EAAE,IAA6B,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC3F,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/object/merge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAC3B,GAA4B,EAC5B,GAAG,OAAuC;IAE1C,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,MAAM,CAC7B,CAAC,IAA6B,EAAE,IAA6B,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC3F,MAAM,UAAU,GAAG;YACjB,SAAS,EAAK,IAAI;YAClB,YAAY,EAAE,IAAI;YAClB,UAAU,EAAI,IAAI;YAClB,QAAQ,EAAM,IAAI;YAClB,KAAK,EAAS,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gBACxC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAU,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAU,CAAC;gBACtD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;SACZ,CAAC;QAEF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,EACN,EAAE,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { hasOwnProperty } from \"../../utils.js\";\nimport keys from \"../keys/index.js\";\n\n/**\n * Creates a new object from the combination of two or more objects\n * @param obj\n * @param objects\n * @example\n * const object = {\n * a: [{ x: 2 }, { y: 4 }],\n * b: 1\n * };\n * const other = {\n * a: { z: 3 },\n * b: [2, 3],\n * c: \"foo\"\n * };\n * merge(object, other); // { a: [ { x: 2 }, { y: 4 }, { z: 3 } ], b: [ 1, 2, 3 ], c: \"foo\" }\n */\nexport default function merge(\n obj: Record<string, unknown>,\n ...objects: Array<Record<string, unknown>>\n): Record<string, unknown> {\n return [obj, ...objects].reduce(\n (prev: Record<string, unknown>, obj2: Record<string, unknown>) => keys(obj2).reduce((a, k) => {\n const descriptor = {\n __proto__ : null,\n configurable: true,\n enumerable : true,\n writable : true,\n value : hasOwnProperty.call(prev, k)\n ? [].concat(prev[k] as never).concat(obj2[k] as never)\n : obj2[k],\n };\n\n Object.defineProperty(prev, k, descriptor);\n\n return prev;\n }, {}),\n {},\n );\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prototyped.js",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Common typescript ready prototypes available in both CommonJS and ECMAScript",
|
|
5
5
|
"author": "Ardalan Amini <ardalanamini22@gmail.com> (https://ardalanamini.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1601,102 +1601,102 @@
|
|
|
1601
1601
|
},
|
|
1602
1602
|
"./func": {
|
|
1603
1603
|
"import": {
|
|
1604
|
-
"types": "./build/esm/
|
|
1605
|
-
"default": "./build/esm/
|
|
1604
|
+
"types": "./build/esm/function/index.d.ts",
|
|
1605
|
+
"default": "./build/esm/function/index.js"
|
|
1606
1606
|
},
|
|
1607
1607
|
"default": {
|
|
1608
|
-
"types": "./build/cjs/
|
|
1609
|
-
"default": "./build/cjs/
|
|
1608
|
+
"types": "./build/cjs/function/index.d.ts",
|
|
1609
|
+
"default": "./build/cjs/function/index.js"
|
|
1610
1610
|
}
|
|
1611
1611
|
},
|
|
1612
1612
|
"./func/shim": {
|
|
1613
1613
|
"import": {
|
|
1614
|
-
"types": "./build/esm/
|
|
1615
|
-
"default": "./build/esm/
|
|
1614
|
+
"types": "./build/esm/function/shim.d.ts",
|
|
1615
|
+
"default": "./build/esm/function/shim.js"
|
|
1616
1616
|
},
|
|
1617
1617
|
"default": {
|
|
1618
|
-
"types": "./build/cjs/
|
|
1619
|
-
"default": "./build/cjs/
|
|
1618
|
+
"types": "./build/cjs/function/shim.d.ts",
|
|
1619
|
+
"default": "./build/cjs/function/shim.js"
|
|
1620
1620
|
}
|
|
1621
1621
|
},
|
|
1622
1622
|
"./func/cache": {
|
|
1623
1623
|
"import": {
|
|
1624
|
-
"types": "./build/esm/
|
|
1625
|
-
"default": "./build/esm/
|
|
1624
|
+
"types": "./build/esm/function/cache/index.d.ts",
|
|
1625
|
+
"default": "./build/esm/function/cache/index.js"
|
|
1626
1626
|
},
|
|
1627
1627
|
"default": {
|
|
1628
|
-
"types": "./build/cjs/
|
|
1629
|
-
"default": "./build/cjs/
|
|
1628
|
+
"types": "./build/cjs/function/cache/index.d.ts",
|
|
1629
|
+
"default": "./build/cjs/function/cache/index.js"
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
1632
1632
|
"./func/cache/shim": {
|
|
1633
1633
|
"import": {
|
|
1634
|
-
"types": "./build/esm/
|
|
1635
|
-
"default": "./build/esm/
|
|
1634
|
+
"types": "./build/esm/function/cache/shim.d.ts",
|
|
1635
|
+
"default": "./build/esm/function/cache/shim.js"
|
|
1636
1636
|
},
|
|
1637
1637
|
"default": {
|
|
1638
|
-
"types": "./build/cjs/
|
|
1639
|
-
"default": "./build/cjs/
|
|
1638
|
+
"types": "./build/cjs/function/cache/shim.d.ts",
|
|
1639
|
+
"default": "./build/cjs/function/cache/shim.js"
|
|
1640
1640
|
}
|
|
1641
1641
|
},
|
|
1642
1642
|
"./func/defer": {
|
|
1643
1643
|
"import": {
|
|
1644
|
-
"types": "./build/esm/
|
|
1645
|
-
"default": "./build/esm/
|
|
1644
|
+
"types": "./build/esm/function/defer/index.d.ts",
|
|
1645
|
+
"default": "./build/esm/function/defer/index.js"
|
|
1646
1646
|
},
|
|
1647
1647
|
"default": {
|
|
1648
|
-
"types": "./build/cjs/
|
|
1649
|
-
"default": "./build/cjs/
|
|
1648
|
+
"types": "./build/cjs/function/defer/index.d.ts",
|
|
1649
|
+
"default": "./build/cjs/function/defer/index.js"
|
|
1650
1650
|
}
|
|
1651
1651
|
},
|
|
1652
1652
|
"./func/defer/shim": {
|
|
1653
1653
|
"import": {
|
|
1654
|
-
"types": "./build/esm/
|
|
1655
|
-
"default": "./build/esm/
|
|
1654
|
+
"types": "./build/esm/function/defer/shim.d.ts",
|
|
1655
|
+
"default": "./build/esm/function/defer/shim.js"
|
|
1656
1656
|
},
|
|
1657
1657
|
"default": {
|
|
1658
|
-
"types": "./build/cjs/
|
|
1659
|
-
"default": "./build/cjs/
|
|
1658
|
+
"types": "./build/cjs/function/defer/shim.d.ts",
|
|
1659
|
+
"default": "./build/cjs/function/defer/shim.js"
|
|
1660
1660
|
}
|
|
1661
1661
|
},
|
|
1662
1662
|
"./func/isFunction": {
|
|
1663
1663
|
"import": {
|
|
1664
|
-
"types": "./build/esm/
|
|
1665
|
-
"default": "./build/esm/
|
|
1664
|
+
"types": "./build/esm/function/isFunction/index.d.ts",
|
|
1665
|
+
"default": "./build/esm/function/isFunction/index.js"
|
|
1666
1666
|
},
|
|
1667
1667
|
"default": {
|
|
1668
|
-
"types": "./build/cjs/
|
|
1669
|
-
"default": "./build/cjs/
|
|
1668
|
+
"types": "./build/cjs/function/isFunction/index.d.ts",
|
|
1669
|
+
"default": "./build/cjs/function/isFunction/index.js"
|
|
1670
1670
|
}
|
|
1671
1671
|
},
|
|
1672
1672
|
"./func/isFunction/shim": {
|
|
1673
1673
|
"import": {
|
|
1674
|
-
"types": "./build/esm/
|
|
1675
|
-
"default": "./build/esm/
|
|
1674
|
+
"types": "./build/esm/function/isFunction/shim.d.ts",
|
|
1675
|
+
"default": "./build/esm/function/isFunction/shim.js"
|
|
1676
1676
|
},
|
|
1677
1677
|
"default": {
|
|
1678
|
-
"types": "./build/cjs/
|
|
1679
|
-
"default": "./build/cjs/
|
|
1678
|
+
"types": "./build/cjs/function/isFunction/shim.d.ts",
|
|
1679
|
+
"default": "./build/cjs/function/isFunction/shim.js"
|
|
1680
1680
|
}
|
|
1681
1681
|
},
|
|
1682
1682
|
"./func/once": {
|
|
1683
1683
|
"import": {
|
|
1684
|
-
"types": "./build/esm/
|
|
1685
|
-
"default": "./build/esm/
|
|
1684
|
+
"types": "./build/esm/function/once/index.d.ts",
|
|
1685
|
+
"default": "./build/esm/function/once/index.js"
|
|
1686
1686
|
},
|
|
1687
1687
|
"default": {
|
|
1688
|
-
"types": "./build/cjs/
|
|
1689
|
-
"default": "./build/cjs/
|
|
1688
|
+
"types": "./build/cjs/function/once/index.d.ts",
|
|
1689
|
+
"default": "./build/cjs/function/once/index.js"
|
|
1690
1690
|
}
|
|
1691
1691
|
},
|
|
1692
1692
|
"./func/once/shim": {
|
|
1693
1693
|
"import": {
|
|
1694
|
-
"types": "./build/esm/
|
|
1695
|
-
"default": "./build/esm/
|
|
1694
|
+
"types": "./build/esm/function/once/shim.d.ts",
|
|
1695
|
+
"default": "./build/esm/function/once/shim.js"
|
|
1696
1696
|
},
|
|
1697
1697
|
"default": {
|
|
1698
|
-
"types": "./build/cjs/
|
|
1699
|
-
"default": "./build/cjs/
|
|
1698
|
+
"types": "./build/cjs/function/once/shim.d.ts",
|
|
1699
|
+
"default": "./build/cjs/function/once/shim.js"
|
|
1700
1700
|
}
|
|
1701
1701
|
},
|
|
1702
1702
|
"./globals": {
|
|
@@ -3201,19 +3201,6 @@
|
|
|
3201
3201
|
},
|
|
3202
3202
|
"./package.json": "./package.json"
|
|
3203
3203
|
},
|
|
3204
|
-
"scripts": {
|
|
3205
|
-
"build": "scripts/pre-build.sh && npm run build:cjs && npm run build:esm && scripts/post-build.sh",
|
|
3206
|
-
"build:watch": "npm run build:cjs -- --watch",
|
|
3207
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
3208
|
-
"build:cjs": "tsc",
|
|
3209
|
-
"lint": "eslint src __tests__",
|
|
3210
|
-
"lint:fix": "npm run lint -- --fix",
|
|
3211
|
-
"test": "node --no-compilation-cache --expose-gc node_modules/jest/bin/jest --logHeapUsage",
|
|
3212
|
-
"test:coverage": "npm test -- --coverage",
|
|
3213
|
-
"test:ci": "npm run test:coverage -- --no-cache --ci --verbose --maxWorkers=2",
|
|
3214
|
-
"docs": "typedoc",
|
|
3215
|
-
"regenerate:package.json": "node scripts/regenerate-package-json.js"
|
|
3216
|
-
},
|
|
3217
3204
|
"peerDependencies": {
|
|
3218
3205
|
"@types/node": "^18.7.3"
|
|
3219
3206
|
},
|
|
@@ -3230,5 +3217,19 @@
|
|
|
3230
3217
|
"ts-jest": "^28.0.7",
|
|
3231
3218
|
"typedoc": "^0.23.10",
|
|
3232
3219
|
"typescript": "^4.7.4"
|
|
3220
|
+
},
|
|
3221
|
+
"scripts": {
|
|
3222
|
+
"build": "scripts/pre-build.sh && pnpm build:cjs && pnpm build:esm && scripts/post-build.sh",
|
|
3223
|
+
"build:watch": "pnpm build:cjs --watch",
|
|
3224
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
3225
|
+
"build:cjs": "tsc",
|
|
3226
|
+
"lint": "eslint src __tests__",
|
|
3227
|
+
"lint:fix": "pnpm lint --fix",
|
|
3228
|
+
"test": "node --no-compilation-cache --expose-gc node_modules/jest/bin/jest --logHeapUsage",
|
|
3229
|
+
"test:coverage": "pnpm test --coverage",
|
|
3230
|
+
"test:ci": "pnpm test:coverage --no-cache --ci --verbose --maxWorkers=2",
|
|
3231
|
+
"test:package": "node scripts/check-package.js artifacts/package.tgz",
|
|
3232
|
+
"docs": "typedoc",
|
|
3233
|
+
"regenerate:package.json": "node scripts/regenerate-package-json.js"
|
|
3233
3234
|
}
|
|
3234
|
-
}
|
|
3235
|
+
}
|