Skip to content

Commit

Permalink
chore: apply nodenext module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Feb 19, 2024
1 parent 878c89e commit db0178c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env node

const fs = require('fs')
const minimist = require('minimist')
const glob = require('glob')
const gitignore = require('ignore')
const { readRc, runWithConfig, report } = require('../')
import fs from 'fs'
import minimist from 'minimist'
import * as glob from 'glob'
import gitignore from 'ignore'
import { readRc, runWithConfig, report } from '../lib/index.js'

const helpMessage = `
This is zhlint!
Expand Down
4 changes: 2 additions & 2 deletions tsconfig-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"rootDir": "src",
"lib": ["es2017"],
"target": "es2017",
"module": "ES6",
"moduleResolution": "node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"strictNullChecks": true,
"declaration": true,
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
"lib": ["es2017"],
"target": "es2017",
"module": "ES6",
"moduleResolution": "node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"strictNullChecks": true,
"skipLibCheck": true
Expand Down

0 comments on commit db0178c

Please sign in to comment.