Skip to content

Commit

Permalink
fix(bin):add npm file list, node require style to node:xx
Browse files Browse the repository at this point in the history
  • Loading branch information
guocaoyi committed Sep 9, 2022
1 parent a8077fa commit 0ad9d95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ pnpm-lock.yaml
# ignore compiled files
build
types
index.js
!**/index.js
*.js
!template-*/*.js

# ignore ide settings
.idea
Expand Down
7 changes: 4 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as fs from 'fs'
import * as path from 'path'
import * as fs from 'node:fs'
import * as path from 'node:path'
import * as process from 'node:process'
import minimist from 'minimist'
import prompts from 'prompts'
import mustache from 'mustache'
import { fileURLToPath } from 'url'
import { fileURLToPath } from 'node:url'
import { red, ansi256, reset } from 'kolorist'

const argv = minimist(process.argv.slice(2), { string: ['_'] })
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"files": [
"mustache",
"template-*",
"bin.js",
"index.js",
"README.md"
],
Expand Down

0 comments on commit 0ad9d95

Please sign in to comment.