Skip to content

Commit 328c183

Browse files
ci: update node version. (#31)
docs: update.
1 parent 2fb99e9 commit 328c183

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node
1919
uses: actions/[email protected]
2020
with:
21-
node-version: '20.8.1'
21+
node-version: '20.10.0'
2222
- name: Install Dependencies
2323
run: npm ci
2424
- name: Save error log

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Node
1515
uses: actions/[email protected]
1616
with:
17-
node-version: '20.8.1'
17+
node-version: '20.10.0'
1818
- name: Install Dependencies
1919
run: npm ci
2020
- name: Save error log

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![codecov](https://codecov.io/gh/knightedcodemonkey/duel/branch/main/graph/badge.svg?token=7K74BRLHFy)](https://codecov.io/gh/knightedcodemonkey/duel)
55
[![NPM version](https://img.shields.io/npm/v/@knighted/duel.svg)](https://www.npmjs.com/package/@knighted/duel)
66

7-
Node.js tool for building a TypeScript dual package.
7+
Tool for building a Node.js [dual package](https://nodejs.org/api/packages.html#dual-commonjses-module-packages) with TypeScript. Supports CommonJS and ES module projects.
88

99
## Features
1010

@@ -37,7 +37,7 @@ Then, given a `package.json` that defines `"type": "module"` and a `tsconfig.js
3737
}
3838
```
3939

40-
You can create a build for the project defined by the above configuration, **and also a separate dual CJS build** by defining the following npm run script in your `package.json`:
40+
You can create an ES module build for the project defined by the above configuration, **and also a dual CJS build** by defining the following npm run script in your `package.json`:
4141

4242
```json
4343
"scripts": {

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@knighted/duel",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "TypeScript dual packages.",
55
"type": "module",
66
"main": "dist",
@@ -25,11 +25,17 @@
2525
"prepack": "npm run build"
2626
},
2727
"keywords": [
28-
"tsc",
28+
"node",
2929
"typescript",
30+
"esm",
31+
"cjs",
32+
"commonjs",
3033
"dual package",
34+
"build",
35+
"tsc",
3136
"cts",
32-
"mts"
37+
"mts",
38+
"mjs"
3339
],
3440
"files": [
3541
"dist"

0 commit comments

Comments
 (0)