mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
While ESM support has been stable in current versions of Node.js 14.x and 16.x, support for importing JSON files is still experimental and evolving. Since we still want to cover the fact that the package is exporting it's package.json file, this test is now extracted to only run with the updated JSON import syntax which requires import assertions and which was introduced in Node.js 16.14.0. Fixes #619 Co-authored-by: Robert Kieffer <[email protected]>
14 lines
351 B
JSON
14 lines
351 B
JSON
{
|
|
"name": "uuid-example-node-esmodules",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"test:package": "( node --version | grep -vq 'v16' ) || ( node --experimental-json-modules package.mjs )",
|
|
"test:example": "node example.mjs",
|
|
"test": "npm-run-all test:*"
|
|
},
|
|
"dependencies": {
|
|
"uuid": "file:../../.local/uuid"
|
|
}
|
|
}
|