@vanillaes/esmtk 1.1.1 → 1.2.0
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 +2 -0
- package/bin/commands/type.js +4 -0
- package/bin/esmtk.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -112,7 +112,9 @@ Type check the JSDoc typings (using Typescript)
|
|
|
112
112
|
`esmtk type [...options] [entry]`
|
|
113
113
|
|
|
114
114
|
- `[entry]` - the entry-point for the source
|
|
115
|
+
- `--module [module]` - module resolution type (default `esnext`)
|
|
115
116
|
- `--strict` - enable 'strict mode' type checks
|
|
117
|
+
- `--types [types]` - specify type package names to include (ex `node` for `@types/node`)
|
|
116
118
|
|
|
117
119
|
### Usage
|
|
118
120
|
|
package/bin/commands/type.js
CHANGED
package/bin/esmtk.js
CHANGED
|
@@ -37,6 +37,7 @@ program.command('type <entry>')
|
|
|
37
37
|
.description('Type check the JSDoc typings using Typescript')
|
|
38
38
|
.option('--module <module>', 'Module resolution type (default esnext)', 'esnext')
|
|
39
39
|
.option('--strict', 'Enable \'strict mode\'')
|
|
40
|
+
.option('--types <types>', 'specify type package names to include (ex `node` for `@types/node`)')
|
|
40
41
|
.action((entry, options) => {
|
|
41
42
|
type(entry, options)
|
|
42
43
|
})
|