Skip to content

Commit 82141ce

Browse files
authored
Merge pull request #14 from hildjj/ansi
Allow ANSI escapes
2 parents ef1c00b + 8015f2b commit 82141ce

File tree

8 files changed

+435
-274
lines changed

8 files changed

+435
-274
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
permissions:
9-
contents: read
9+
contents: write
1010
id-token: write
1111
steps:
1212
- uses: actions/checkout@v4
@@ -18,6 +18,12 @@ jobs:
1818
cache: pnpm
1919
- run: pnpm i -r
2020
- run: npm run build
21+
- name: Deploy
22+
uses: peaceiris/actions-gh-pages@v4
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: docs
26+
publish_branch: gh-pages
2127
- run: npm publish --access public --provenance
2228
env:
2329
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
coverage/
33
lib/
44
node_modules/
5+
docs/

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ eslint.config.js
1010
src/
1111
test/
1212
tsconfig.json
13+
docs/
14+
typedoc.config.cjs

package.json

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
"main": "lib/index.js",
66
"type": "module",
77
"scripts": {
8+
"docs": "typedoc",
89
"pretest": "tsc",
910
"test": "c8 mocha",
1011
"preci": "tsc --inlineSourceMap",
1112
"ci": "c8 mocha",
1213
"lint": "eslint .",
13-
"build": "npm test && npm run lint && npm pack --dry-run"
14+
"build": "npm test && npm run lint && npm run docs && npm pack --dry-run"
1415
},
1516
"keywords": [
1617
"parseArgs",
@@ -28,28 +29,19 @@
2829
"url": "git+https://github.com/hildjj/minus-h.git"
2930
},
3031
"dependencies": {
31-
"@cto.af/linewrap": "2.0.0"
32+
"@cto.af/linewrap": "2.1.0"
3233
},
3334
"devDependencies": {
34-
"@cto.af/eslint-config": "4.1.1",
35-
"@types/node": "20.14.9",
35+
"@cto.af/eslint-config": "4.1.5",
36+
"@types/node": "22.1.0",
3637
"c8": "10.1.2",
37-
"eslint": "9.5.0",
38-
"mocha": "10.5.1",
39-
"typescript": "5.5.2",
40-
"typescript-eslint": "8.0.0-alpha.33"
38+
"eslint": "9.8.0",
39+
"mocha": "10.7.0",
40+
"typedoc": "0.26.5",
41+
"typescript": "5.5.4",
42+
"typescript-eslint": "8.0.1"
4143
},
42-
"overrides": {
43-
"@typescript-eslint/utils": "8.0.0-alpha.33",
44-
"@typescript-eslint/parser": "8.0.0-alpha.33"
45-
},
46-
"pnpm": {
47-
"overrides": {
48-
"@typescript-eslint/utils": "8.0.0-alpha.33",
49-
"@typescript-eslint/parser": "8.0.0-alpha.33"
50-
}
51-
},
52-
"packageManager": "[email protected]",
44+
"packageManager": "[email protected]",
5345
"engines": {
5446
"node": ">=20"
5547
}

0 commit comments

Comments
 (0)