@knighted/duel 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +11 -5
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![codecov](https://codecov.io/gh/knightedcodemonkey/duel/branch/main/graph/badge.svg?token=7K74BRLHFy)](https://codecov.io/gh/knightedcodemonkey/duel)
5
5
  [![NPM version](https://img.shields.io/npm/v/@knighted/duel.svg)](https://www.npmjs.com/package/@knighted/duel)
6
6
 
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.
8
8
 
9
9
  ## Features
10
10
 
@@ -37,7 +37,7 @@ Then, given a `package.json` that defines `"type": "module"` and a `tsconfig.js
37
37
  }
38
38
  ```
39
39
 
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`:
41
41
 
42
42
  ```json
43
43
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knighted/duel",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "TypeScript dual packages.",
5
5
  "type": "module",
6
6
  "main": "dist",
@@ -25,11 +25,17 @@
25
25
  "prepack": "npm run build"
26
26
  },
27
27
  "keywords": [
28
- "tsc",
28
+ "node",
29
29
  "typescript",
30
+ "esm",
31
+ "cjs",
32
+ "commonjs",
30
33
  "dual package",
34
+ "build",
35
+ "tsc",
31
36
  "cts",
32
- "mts"
37
+ "mts",
38
+ "mjs"
33
39
  ],
34
40
  "files": [
35
41
  "dist"
@@ -44,7 +50,7 @@
44
50
  "url": "https://github.com/knightedcodemonkey/duel/issues"
45
51
  },
46
52
  "peerDependencies": {
47
- "typescript": ">=4.0.0 || >=4.9.0-dev || >=5.2.0-dev || >=5.3.0-dev"
53
+ "typescript": ">=4.0.0 || >=4.9.0-dev || >=5.2.0-dev || >=5.3.0-dev || 5.4.0-dev"
48
54
  },
49
55
  "devDependencies": {
50
56
  "@types/node": "^20.4.6",
@@ -53,7 +59,7 @@
53
59
  "eslint": "^8.45.0",
54
60
  "eslint-plugin-n": "^16.0.1",
55
61
  "prettier": "^3.0.1",
56
- "typescript": "^5.3.0-dev.20230906",
62
+ "typescript": "^5.4.0-dev.20231206",
57
63
  "vite": "^4.4.8"
58
64
  },
59
65
  "dependencies": {