@vanillaes/esmtk 0.24.6 → 0.25.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
@@ -14,7 +14,7 @@ ESMTK, essential tools for ECMAScript module development
14
14
 
15
15
  - [init](#init) - Create a package.json file for ECMAScript module development
16
16
  - [test](#test) - Run tests (using Tape-ES)
17
- - [lint](#lint) - Lint the source code (using StandardJS)
17
+ - [lint](#lint) - Lint the source code (using Lint-ES)
18
18
  - [types](#types) - Type check the JSDoc typings (using Typescript)
19
19
  - [bundle](#bundle) - Bundle the source code to an ECMAScript module (using ESBuild)
20
20
  - [minify](#minify) - Bundle and Minify the source code to an ECMAScript module (using ESBuild)
@@ -82,7 +82,7 @@ npx @vanillaes/esmtk test --watch
82
82
 
83
83
  ## Lint
84
84
 
85
- Lint the source code (using StandardJS)
85
+ Lint the source code (using Lint-ES)
86
86
 
87
87
  ### Arguments
88
88
 
@@ -1,10 +1,10 @@
1
1
  import { spawn } from 'child_process'
2
2
  import { join } from 'path'
3
3
 
4
- const BIN_PATH = join(process.cwd(), 'node_modules', '.bin', 'standard')
4
+ const BIN_PATH = join(process.cwd(), 'node_modules', '.bin', 'lint-es')
5
5
 
6
6
  /**
7
- * Lint the source code (using StandardJS)
7
+ * Lint the source code (using Lint-ES)
8
8
  * @param {object} options 'lint' options
9
9
  */
10
10
  export async function lint (options) {
@@ -25,8 +25,8 @@ export async function lint (options) {
25
25
  })
26
26
 
27
27
  child.stderr.on('data', (data) => {
28
- if (data.toString() === 'standard: Run `standard --fix` to automatically fix some problems.\n') {
29
- process.stderr.write('standard: Run `esmtk lint --fix` to automatically fix some problems.\n')
28
+ if (data.toString() === 'lint-es: Run `lint-es --fix` to automatically fix some problems.\n') {
29
+ process.stderr.write('esmtk: Run `esmtk lint --fix` to automatically fix some problems.\n')
30
30
  } else {
31
31
  process.stderr.write(`${data}`)
32
32
  }
package/bin/esmtk.js CHANGED
@@ -26,7 +26,7 @@ program.command('test')
26
26
  })
27
27
 
28
28
  program.command('lint')
29
- .description('Lint the source using StandardJS')
29
+ .description('Lint the source using Lint-ES')
30
30
  .option('--fix', 'Automatically fix problems')
31
31
  .action(options => {
32
32
  const flags = options.fix ? ['--fix'] : []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanillaes/esmtk",
3
- "version": "0.24.6",
3
+ "version": "0.25.0",
4
4
  "description": "ES Module Toolkit",
5
5
  "keywords": [
6
6
  "ecmascript",
@@ -39,7 +39,7 @@
39
39
  "scripts": {
40
40
  "test": "./bin/esmtk.js test",
41
41
  "lint": "./bin/esmtk.js lint",
42
- "types": "./bin/esmtk.js types src/index.js",
42
+ "types": "./bin/esmtk.js types src/index.js && ./bin/esmtk.js types bin/commands/index.js",
43
43
  "bundle": "./bin/esmtk.js bundle --platform=node src/index.js src/index.esm.js",
44
44
  "minify": "./bin/esmtk.js minify --platform=node src/index.js src/index.min.js",
45
45
  "typings": "./bin/esmtk.js typings src/index.js",
@@ -52,9 +52,9 @@
52
52
  "node": ">=22"
53
53
  },
54
54
  "dependencies": {
55
+ "@vanillaes/lint-es": "^1.0.0",
55
56
  "@vanillaes/tape-es": "^3.0.3",
56
- "commander": "^14.0.3",
57
- "standard": "^17.1.2"
57
+ "commander": "^14.0.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/json5": "^0.0.30",