node-semvers 1.3.44 → 1.3.46

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/bin/cli.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ if (typeof require === 'undefined') eval("import('../dist/esm/cli.js').then((cli) => cli.default(process.argv.slice(2), 'nsv')).catch((err) => { console.log(err); process.exit(-1); });");
4
+ else require('../dist/cjs/cli.js')(process.argv.slice(2), 'nsv');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-semvers",
3
- "version": "1.3.44",
3
+ "version": "1.3.46",
4
4
  "description": "Utilities for managing versions of node including looking up codenames",
5
5
  "keywords": [
6
6
  "node",
@@ -28,7 +28,7 @@
28
28
  "main": "dist/cjs/index.js",
29
29
  "types": "dist/cjs/index.d.cts",
30
30
  "bin": {
31
- "nsv": "./bin/cli.cjs"
31
+ "nsv": "./bin/cli.js"
32
32
  },
33
33
  "files": [
34
34
  "dist",
@@ -40,8 +40,8 @@
40
40
  "build": "tsds build",
41
41
  "format": "biome check --write --unsafe src/ test/ && biome check --config-path biome.es5.json --write --unsafe assets/ scripts/",
42
42
  "postinstall": "node scripts/postinstall.cjs",
43
- "test": "tsds test:node --no-timeouts",
44
- "test:engines": "nvu engines npm test",
43
+ "test": "mocha --no-timeouts test/**/*.test.*",
44
+ "test:engines": "nvu engines tsds test:node --no-timeouts",
45
45
  "version": "tsds version"
46
46
  },
47
47
  "dependencies": {
@@ -61,7 +61,7 @@
61
61
  "rollup": "*"
62
62
  },
63
63
  "engines": {
64
- "node": ">=0.8"
64
+ "node": "16"
65
65
  },
66
66
  "tsds": {
67
67
  "source": "src/index.ts"
package/bin/cli.cjs DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- require('../dist/cjs/cli.js')(process.argv.slice(2));