Skip to content

Commit

Permalink
ci: update node version. (#31)
Browse files Browse the repository at this point in the history
docs: update.
  • Loading branch information
knightedcodemonkey authored Dec 14, 2023
1 parent 2fb99e9 commit 328c183
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '20.8.1'
node-version: '20.10.0'
- name: Install Dependencies
run: npm ci
- name: Save error log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '20.8.1'
node-version: '20.10.0'
- name: Install Dependencies
run: npm ci
- name: Save error log
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![codecov](https://codecov.io/gh/knightedcodemonkey/duel/branch/main/graph/badge.svg?token=7K74BRLHFy)](https://codecov.io/gh/knightedcodemonkey/duel)
[![NPM version](https://img.shields.io/npm/v/@knighted/duel.svg)](https://www.npmjs.com/package/@knighted/duel)

Node.js tool for building a TypeScript dual package.
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.

## Features

Expand Down Expand Up @@ -37,7 +37,7 @@ Then, given a `package.json` that defines `"type": "module"` and a `tsconfig.js
}
```

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`:
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`:

```json
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knighted/duel",
"version": "1.0.2",
"version": "1.0.3",
"description": "TypeScript dual packages.",
"type": "module",
"main": "dist",
Expand All @@ -25,11 +25,17 @@
"prepack": "npm run build"
},
"keywords": [
"tsc",
"node",
"typescript",
"esm",
"cjs",
"commonjs",
"dual package",
"build",
"tsc",
"cts",
"mts"
"mts",
"mjs"
],
"files": [
"dist"
Expand Down

0 comments on commit 328c183

Please sign in to comment.