Skip to content

Commit

Permalink
fix: use chalk which is not esm
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Aug 19, 2024
1 parent 778b5c2 commit fd060c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 61 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"dependencies": {
"@inquirer/prompts": "^5.3.8",
"chalk": "^5.3.0",
"chalk": "^4.1.2",
"commander": "^12.1.0"
}
}
61 changes: 2 additions & 59 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { resolve } from 'path';
import { execSync } from 'child_process';
import { readFileSync, writeFileSync } from 'fs';
// Don't use 5.x which is ESM. Tw only run under not esm.
import chalk from 'chalk';
import { input, confirm } from '@inquirer/prompts';
import { program } from 'commander';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"types": ["node", "tw5-typed"],
"lib": ["DOM", "ESNext"]
},
"include": ["./scripts/**/*.ts"],
"include": ["./scripts/**/*.ts", "scripts/index.ts"]
}

0 comments on commit fd060c6

Please sign in to comment.