@vanillaes/esmtk 1.0.1 → 1.1.1

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.
@@ -27,8 +27,10 @@ export async function type (entry, options) {
27
27
  args.push('esnext')
28
28
  args.push('--allowJS')
29
29
  args.push('--checkJS')
30
- args.push('--module')
31
- args.push('esnext')
30
+ if (options?.module) {
31
+ args.push('--module')
32
+ args.push(options.module)
33
+ }
32
34
  args.push('--noEmit')
33
35
  args.push('--skipLibCheck')
34
36
  if (options?.strict) {
package/bin/esmtk.js CHANGED
@@ -35,6 +35,7 @@ program.command('lint')
35
35
 
36
36
  program.command('type <entry>')
37
37
  .description('Type check the JSDoc typings using Typescript')
38
+ .option('--module <module>', 'Module resolution type (default esnext)', 'esnext')
38
39
  .option('--strict', 'Enable \'strict mode\'')
39
40
  .action((entry, options) => {
40
41
  type(entry, options)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanillaes/esmtk",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "ES Module Toolkit",
5
5
  "keywords": [
6
6
  "ecmascript",
@@ -40,7 +40,7 @@
40
40
  "scripts": {
41
41
  "test": "./bin/esmtk.js test",
42
42
  "lint": "./bin/esmtk.js lint",
43
- "type": "./bin/esmtk.js type src/index.js && ./bin/esmtk.js type bin/commands/index.js",
43
+ "type": "./bin/esmtk.js type src/index.js && ./bin/esmtk.js type bin/esmtk.js --module nodenext",
44
44
  "bundle": "./bin/esmtk.js bundle --platform=node src/index.js src/index.esm.js",
45
45
  "minify": "./bin/esmtk.js minify --platform=node src/index.js src/index.min.js",
46
46
  "typings": "./bin/esmtk.js typings src/index.js",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@vanillaes/lint-es": "^1.0.0",
57
- "@vanillaes/tape-es": "^4.0.1",
57
+ "@vanillaes/tape-es": "^4.0.3",
58
58
  "commander": "^14.0.3"
59
59
  },
60
60
  "devDependencies": {