@vanillaes/esmtk 0.24.3 → 0.24.5
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/README.md +1 -1
- package/bin/commands/init.js +1 -1
- package/bin/esmtk.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ npx @vanillaes/esmtk test **/*.test.js
|
|
|
72
72
|
# run the tests (ignore tests)
|
|
73
73
|
npx @vanillaes/esmtk test **/*.test.js --ignore **/node_modules/**,src/rm.spec.js
|
|
74
74
|
|
|
75
|
-
# run the tests (
|
|
75
|
+
# run the tests (change the root)
|
|
76
76
|
npx @vanillaes/esmtk test **/*.test.js --root src/
|
|
77
77
|
|
|
78
78
|
# run the tests (watch for changes)
|
package/bin/commands/init.js
CHANGED
package/bin/esmtk.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { bundle, clean, cp, commonjs, init, lint, minify, preview, rm, test, types, typings } from './commands/index.js'
|
|
3
3
|
import { Command } from 'commander'
|
|
4
4
|
import { createRequire } from 'module'
|
|
5
|
-
const program = new Command()
|
|
6
5
|
const require = createRequire(import.meta.url)
|
|
7
6
|
const pkg = require('../package.json')
|
|
8
7
|
|
|
9
|
-
program
|
|
8
|
+
const program = new Command()
|
|
9
|
+
.version(pkg.version, '-v, --version')
|
|
10
10
|
|
|
11
11
|
program.command('init')
|
|
12
12
|
.description('Create a package.json file for ECMAScript module development')
|