Skip to content

Commit bdbd791

Browse files
committed
feat: drop support for Node.js < 20.19.0, remove CJS build, and update dependencies
1 parent 257b140 commit bdbd791

38 files changed

+5259
-6454
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
permissions: {}
5+
6+
jobs:
7+
release:
8+
uses: sxzz/workflows/.github/workflows/release-commit.yml@v1
9+
with:
10+
compact: true

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
13+
permissions:
14+
contents: write
15+
id-token: write

.github/workflows/unit-test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Unit Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions: {}
10+
11+
jobs:
12+
unit-test:
13+
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
node_modules
2-
/lib
3-
/types
4-
/api-doc
2+
dist
53
coverage
6-
/dist
7-
/deno
4+
api-doc

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

circle.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

eslint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { sxzz } from '@sxzz/eslint-config'
2+
3+
export default sxzz().append({
4+
rules: {
5+
'unicorn/no-array-sort': 'off',
6+
},
7+
})

examples/basic-usage.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/basic-usage.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { cac } from '../src/index.ts'
2+
const cli = cac()
3+
4+
cli.option('--type [type]', 'Choose a project type')
5+
6+
const parsed = cli.parse()
7+
8+
console.info(JSON.stringify(parsed, null, 2))
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require('ts-node/register')
2-
const cli = require('../src/index').cac()
1+
import { cac } from '../src/index.ts'
2+
const cli = cac()
33

44
cli
55
.command('build', 'Build project')
@@ -11,4 +11,4 @@ cli
1111

1212
const parsed = cli.parse()
1313

14-
console.log(JSON.stringify(parsed, null, 2))
14+
console.info(JSON.stringify(parsed, null, 2))

0 commit comments

Comments
 (0)