|
11 | 11 | "license": "MIT",
|
12 | 12 | "author": "Microsoft and contributors",
|
13 | 13 | "sideEffects": false,
|
14 |
| - "main": "dist/index.js", |
15 |
| - "types": "dist/index.d.ts", |
| 14 | + "type": "module", |
| 15 | + "exports": { |
| 16 | + ".": { |
| 17 | + "import": "./lib/index.js", |
| 18 | + "types": "./lib/api-markdown-documenter-public.d.ts" |
| 19 | + }, |
| 20 | + "./beta": { |
| 21 | + "import": "./lib/index.js", |
| 22 | + "types": "./lib/api-markdown-documenter-beta.d.ts" |
| 23 | + } |
| 24 | + }, |
16 | 25 | "scripts": {
|
17 | 26 | "api": "fluid-build . --task api",
|
18 | 27 | "build": "concurrently npm:build:compile npm:lint && npm run build:readme && npm run build:docs",
|
|
23 | 32 | "build:tsc": "npm run tsc",
|
24 | 33 | "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
25 | 34 | "ci:build:docs": "api-extractor run && copyfiles -u 1 \"./_api-extractor-temp/doc-models/*\" ../../_api-extractor-temp/",
|
26 |
| - "clean": "rimraf --glob _api-extractor-temp nyc dist \"**/*.tsbuildinfo\" \"**/*.build.log\"", |
| 35 | + "clean": "rimraf --glob _api-extractor-temp nyc dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", |
27 | 36 | "eslint": "eslint src",
|
28 | 37 | "eslint:fix": "eslint src --fix",
|
29 | 38 | "format": "npm run prettier:fix",
|
|
37 | 46 | "rebuild": "npm run clean && npm run build",
|
38 | 47 | "test": "npm run test:mocha",
|
39 | 48 | "test:coverage": "c8 npm test:mocha",
|
40 |
| - "test:mocha": "mocha \"dist/**/test/**/*.test.js\" --reporter-option maxDiffSize=100000", |
| 49 | + "test:mocha": "mocha \"lib/**/test/**/*.test.js\" --reporter-option maxDiffSize=100000", |
41 | 50 | "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
42 | 51 | "test:verbose": "npm run test:mocha:verbose",
|
43 | 52 | "tsc": "tsc"
|
|
47 | 56 | "cache-dir": "nyc/.cache",
|
48 | 57 | "exclude": [
|
49 | 58 | "src/**/test/**/*.*ts",
|
50 |
| - "dist/**/test/**/*.*js" |
| 59 | + "lib/**/test/**/*.*js" |
51 | 60 | ],
|
52 | 61 | "exclude-after-remap": false,
|
53 | 62 | "include": [
|
54 | 63 | "src/**/*.*ts",
|
55 |
| - "dist/**/*.*js" |
| 64 | + "lib/**/*.*js" |
56 | 65 | ],
|
57 | 66 | "report-dir": "nyc/report",
|
58 | 67 | "reporter": [
|
|
0 commit comments