|
11 | 11 | "license": "MIT",
|
12 | 12 | "author": "Microsoft and contributors",
|
13 | 13 | "sideEffects": false,
|
| 14 | + "type": "module", |
14 | 15 | "exports": {
|
15 | 16 | ".": {
|
16 | 17 | "import": {
|
17 |
| - "types": "./lib/index.d.mts", |
18 |
| - "default": "./lib/index.mjs" |
| 18 | + "types": "./lib/index.d.ts", |
| 19 | + "default": "./lib/index.js" |
19 | 20 | },
|
20 | 21 | "require": {
|
21 | 22 | "types": "./dist/index.d.ts",
|
22 | 23 | "default": "./dist/index.js"
|
23 | 24 | }
|
24 | 25 | },
|
25 |
| - "./alpha": { |
| 26 | + "./public": { |
26 | 27 | "import": {
|
27 |
| - "types": "./lib/driver-web-cache-alpha.d.mts", |
28 |
| - "default": "./lib/index.mjs" |
| 28 | + "types": "./lib/driver-web-cache-public.d.ts", |
| 29 | + "default": "./lib/index.js" |
29 | 30 | },
|
30 | 31 | "require": {
|
31 |
| - "types": "./dist/driver-web-cache-alpha.d.ts", |
| 32 | + "types": "./dist/driver-web-cache-public.d.ts", |
32 | 33 | "default": "./dist/index.js"
|
33 | 34 | }
|
34 | 35 | },
|
35 |
| - "./beta": { |
| 36 | + "./alpha": { |
36 | 37 | "import": {
|
37 |
| - "types": "./lib/driver-web-cache-beta.d.mts", |
38 |
| - "default": "./lib/index.mjs" |
| 38 | + "types": "./lib/driver-web-cache-alpha.d.ts", |
| 39 | + "default": "./lib/index.js" |
39 | 40 | },
|
40 | 41 | "require": {
|
41 |
| - "types": "./dist/driver-web-cache-beta.d.ts", |
| 42 | + "types": "./dist/driver-web-cache-alpha.d.ts", |
42 | 43 | "default": "./dist/index.js"
|
43 | 44 | }
|
44 | 45 | },
|
45 | 46 | "./internal": {
|
46 | 47 | "import": {
|
47 |
| - "types": "./lib/index.d.mts", |
48 |
| - "default": "./lib/index.mjs" |
| 48 | + "types": "./lib/index.d.ts", |
| 49 | + "default": "./lib/index.js" |
49 | 50 | },
|
50 | 51 | "require": {
|
51 | 52 | "types": "./dist/index.d.ts",
|
52 | 53 | "default": "./dist/index.js"
|
53 | 54 | }
|
54 |
| - }, |
55 |
| - "./public": { |
56 |
| - "import": { |
57 |
| - "types": "./lib/driver-web-cache-public.d.mts", |
58 |
| - "default": "./lib/index.mjs" |
59 |
| - }, |
60 |
| - "require": { |
61 |
| - "types": "./dist/driver-web-cache-public.d.ts", |
62 |
| - "default": "./dist/index.js" |
63 |
| - } |
64 | 55 | }
|
65 | 56 | },
|
66 | 57 | "main": "dist/index.js",
|
67 |
| - "module": "lib/index.mjs", |
68 | 58 | "types": "dist/index.d.ts",
|
69 | 59 | "scripts": {
|
70 | 60 | "api": "fluid-build . --task api",
|
71 |
| - "api-extractor:commonjs": "api-extractor run --local", |
72 |
| - "api-extractor:esnext": "api-extractor run --config ./api-extractor-esm.json", |
| 61 | + "api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json", |
| 62 | + "api-extractor:esnext": "api-extractor run --local", |
73 | 63 | "build": "fluid-build . --task build",
|
74 | 64 | "build:commonjs": "fluid-build . --task commonjs",
|
75 | 65 | "build:compile": "fluid-build . --task compile",
|
76 | 66 | "build:docs": "fluid-build . --task api",
|
77 |
| - "build:esnext": "tsc-multi --config ../../../common/build/build-common/tsc-multi.esm.json", |
| 67 | + "build:esnext": "tsc --project ./tsconfig.json", |
78 | 68 | "build:genver": "gen-version",
|
79 |
| - "build:test": "tsc --project ./src/test/tsconfig.json", |
| 69 | + "build:test": "npm run build:test:esm && npm run build:test:cjs", |
| 70 | + "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", |
| 71 | + "build:test:esm": "tsc --project ./src/test/tsconfig.json", |
80 | 72 | "check:are-the-types-wrong": "attw --pack . --entrypoints .",
|
81 | 73 | "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
82 | 74 | "ci:build:docs": "api-extractor run",
|
|
90 | 82 | "prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
91 | 83 | "test": "npm run test:jest",
|
92 | 84 | "test:jest": "jest",
|
93 |
| - "tsc": "tsc", |
| 85 | + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", |
94 | 86 | "typetests:gen": "fluid-type-test-generator",
|
95 | 87 | "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
96 | 88 | },
|
|
117 | 109 | "jest": "^29.6.2",
|
118 | 110 | "prettier": "~3.0.3",
|
119 | 111 | "rimraf": "^4.4.0",
|
120 |
| - "tsc-multi": "^1.1.0", |
121 | 112 | "typescript": "~5.1.6"
|
122 | 113 | },
|
123 | 114 | "fluidBuild": {
|
|
0 commit comments