@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 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
 
@@ -36,6 +36,10 @@ export async function type (entry, options) {
36
36
  if (options?.strict) {
37
37
  args.push('--strict')
38
38
  }
39
+ if (options?.types) {
40
+ args.push('--types')
41
+ args.push(options.types)
42
+ }
39
43
 
40
44
  spawn('tsc', args, {
41
45
  cwd: process.cwd(),
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
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanillaes/esmtk",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "ES Module Toolkit",
5
5
  "keywords": [
6
6
  "ecmascript",