Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm test
117 changes: 0 additions & 117 deletions index.d.ts

This file was deleted.

188 changes: 0 additions & 188 deletions index.js

This file was deleted.

23 changes: 0 additions & 23 deletions index.test-d.ts

This file was deleted.

15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
"funding": "https://github.com/chalk/chalk-template?sponsor=1",
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"engines": {
"node": ">=14.16"
},
"scripts": {
"test": "xo && ava test/index.js && cross-env FORCE_COLOR=0 ava test/no-color.js && cross-env FORCE_COLOR=3 TERM=dumb ava test/full-color.js && cross-env FORCE_COLOR=3 TERM=dumb ava test/template.js && tsd"
"build": "tsc --project tsconfig.json",
"clean": "rimraf dist",
"test": "ava test/index.js && cross-env FORCE_COLOR=0 ava test/no-color.js && cross-env FORCE_COLOR=3 TERM=dumb ava test/full-color.js && cross-env FORCE_COLOR=3 TERM=dumb ava test/template.js"
},
"files": [
"index.js",
Expand Down Expand Up @@ -48,9 +50,16 @@
"dependencies": {
"chalk": "^5.2.0"
},
"prettier": {
"singleQuote": true
},
"devDependencies": {
"@tsconfig/esm": "^1.0.3",
"@tsconfig/node14": "^1.0.3",
"@tsconfig/recommended": "^1.0.2",
"ava": "^5.2.0",
"cross-env": "^7.0.3",
"prettier": "^2.8.8",
"tsd": "^0.28.1",
"xo": "^0.54.2"
}
Expand Down
Loading