From 25a48392da6c960c0587d9bd03664b4fab79d743 Mon Sep 17 00:00:00 2001 From: KCM Date: Thu, 14 Dec 2023 17:09:47 -0600 Subject: [PATCH] ci: update node version. docs: update. --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 2 +- README.md | 4 ++-- package-lock.json | 4 ++-- package.json | 12 +++++++++--- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3f19e5..6fa26eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3.6.0 with: - node-version: '20.8.1' + node-version: '20.10.0' - name: Install Dependencies run: npm ci - name: Save error log diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2bb4ed7..8fc9233 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3.6.0 with: - node-version: '20.8.1' + node-version: '20.10.0' - name: Install Dependencies run: npm ci - name: Save error log diff --git a/README.md b/README.md index c33b03e..8d1055b 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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": { diff --git a/package-lock.json b/package-lock.json index db841e3..68bc114 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@knighted/duel", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@knighted/duel", - "version": "1.0.2", + "version": "1.0.3", "license": "MIT", "dependencies": { "@knighted/specifier": "^1.0.1", diff --git a/package.json b/package.json index fe3771b..63450c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@knighted/duel", - "version": "1.0.2", + "version": "1.0.3", "description": "TypeScript dual packages.", "type": "module", "main": "dist", @@ -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"