inferred-types 0.41.1 → 0.41.2

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 (1) hide show
  1. package/package.json +6 -2
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "inferred-types",
3
- "version": "0.41.1",
3
+ "version": "0.41.2",
4
4
  "description": "Functions which provide useful type inference on TS projects",
5
5
  "license": "MIT",
6
6
  "author": "Ken Snyder<ken@ken.net>",
7
7
  "type": "module",
8
+ "main": "./dist/inferred-types/index.cjs",
8
9
  "module": "./dist/inferred-types/index.js",
9
10
  "typings": "./dist/inferred-types/index.d.ts",
10
11
  "exports": {
11
12
  ".": {
12
13
  "import": "./dist/inferred-types/index.js",
14
+ "require": "./dist/inferred-types/index.cjs",
13
15
  "types": "./dist/inferred-types/index.d.ts"
14
16
  }
15
17
  },
@@ -23,7 +25,9 @@
23
25
  "scripts": {
24
26
  "prepare": "ts-patch install -s",
25
27
  "about": "tokei src",
26
- "build": "tsc -b --verbose src/inferred-types",
28
+ "build": "run-s build:esm build:cjs",
29
+ "build:esm": "tsc -b --verbose src/inferred-types",
30
+ "build:cjs": "tsup dist/inferred-types/index.js --format cjs -d dist/inferred-types",
27
31
  "build:force": "rimraf dist && tsc -b -f --verbose src/inferred-types",
28
32
  "diagnostics": "npx tsc -b -f -diagnostics src/inferred-types",
29
33
  "clean": "rimraf dist/**/*",