@vanillaes/esmtk 0.24.2 → 0.24.4

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.
@@ -69,7 +69,7 @@ export async function init (options) {
69
69
  const entry = await ask(program, 'entry point', 'index.js')
70
70
  if (entry) {
71
71
  pkg.exports = {}
72
- pkg.exports['.'] = 'entry'
72
+ pkg.exports['.'] = `./${entry}`
73
73
  }
74
74
  if (options?.scripts) {
75
75
  pkg.scripts = {}
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.version(pkg.version, '-v, --version')
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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanillaes/esmtk",
3
- "version": "0.24.2",
3
+ "version": "0.24.4",
4
4
  "description": "ES Module Toolkit",
5
5
  "keywords": [
6
6
  "ecmascript",