Skip to content

Commit d1cc665

Browse files
committed
Gather non-index.js top level js-files in lib/
1 parent 7dc2ab0 commit d1cc665

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bin/cmd.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env node
22

3-
require('version-guard')('../cli.js', 12, 22)
3+
require('version-guard')('../lib/cli.js', 12, 22)

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*! standard. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
22
import { StandardEngine } from 'standard-engine'
3-
import options from './options.js'
3+
import options from './lib/options.js'
44

55
export default new StandardEngine(options)

cli.js lib/cli.js

File renamed without changes.

options.js lib/options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { fileURLToPath } from 'node:url'
33
import eslint from 'eslint'
44

55
// eslintConfig.overrideConfigFile have problem reading URLs and file:///
6-
const overrideConfigFile = fileURLToPath(new URL('./eslintrc.json', import.meta.url))
7-
const pkgURL = new URL('./package.json', import.meta.url)
6+
const overrideConfigFile = fileURLToPath(new URL('../eslintrc.json', import.meta.url))
7+
const pkgURL = new URL('../package.json', import.meta.url)
88
const pkgJSON = readFileSync(pkgURL, { encoding: 'utf-8' })
99
const pkg = JSON.parse(pkgJSON)
1010

0 commit comments

Comments
 (0)