|
2 | 2 | "name": "fast-check",
|
3 | 3 | "version": "3.23.2",
|
4 | 4 | "description": "Property based testing framework for JavaScript (like QuickCheck)",
|
5 |
| - "type": "commonjs", |
| 5 | + "type": "module", |
6 | 6 | "main": "lib/fast-check.js",
|
7 | 7 | "exports": {
|
8 | 8 | "./package.json": "./package.json",
|
9 | 9 | ".": {
|
10 | 10 | "require": {
|
11 |
| - "types": "./lib/types/fast-check.d.ts", |
12 |
| - "default": "./lib/fast-check.js" |
| 11 | + "types": "./lib/cjs/types/fast-check.d.ts", |
| 12 | + "default": "./lib/cjs/fast-check.js" |
13 | 13 | },
|
14 | 14 | "import": {
|
15 |
| - "types": "./lib/esm/types/fast-check.d.ts", |
16 |
| - "default": "./lib/esm/fast-check.js" |
| 15 | + "types": "./lib/types/fast-check.d.ts", |
| 16 | + "default": "./lib/fast-check.js" |
17 | 17 | }
|
18 | 18 | }
|
19 | 19 | },
|
20 |
| - "module": "lib/esm/fast-check.js", |
| 20 | + "module": "lib/fast-check.js", |
21 | 21 | "types": "lib/types/fast-check.d.ts",
|
22 | 22 | "files": [
|
23 | 23 | "lib",
|
|
28 | 28 | "scripts": {
|
29 | 29 | "build": "yarn build:publish-cjs && yarn build:publish-esm && yarn build:publish-types && node postbuild/main.mjs",
|
30 | 30 | "build-ci": "cross-env EXPECT_GITHUB_SHA=true yarn build",
|
31 |
| - "build:publish-types": "tsc -p tsconfig.publish.types.json && tsc -p tsconfig.publish.types.json --outDir lib/esm/types", |
32 |
| - "build:publish-cjs": "tsc -p tsconfig.publish.json", |
33 |
| - "build:publish-esm": "tsc -p tsconfig.publish.json --module es2015 --moduleResolution node --outDir lib/esm && cp package.esm-template.json lib/esm/package.json", |
| 31 | + "build:publish-types": "tsc -p tsconfig.publish.types.json && tsc -p tsconfig.publish.types.json --outDir lib/cjs/types", |
| 32 | + "build:publish-cjs": "tsc -p tsconfig.publish.json --outDir lib/cjs && cp package.cjs-template.json lib/cjs/package.json", |
| 33 | + "build:publish-esm": "tsc -p tsconfig.publish.json --module es2015 --moduleResolution node", |
34 | 34 | "typecheck": "tsc --noEmit",
|
35 | 35 | "test": "vitest --config vitest.unit.config.mjs",
|
36 | 36 | "e2e": "vitest --config vitest.e2e.config.mjs",
|
37 | 37 | "update:documentation": "cross-env UPDATE_CODE_SNIPPETS=true vitest --config vitest.documentation.config.mjs",
|
38 | 38 | "test-bundle": "node test-bundle/run.cjs && node test-bundle/run.mjs && node test-bundle/run-advanced.cjs",
|
39 |
| - "test-legacy-bundle": "nvs add 10.5 && $(nvs which 10.5) test-bundle/run.cjs && $(nvs which 10.5) test-bundle/run-advanced.cjs", |
| 39 | + "test-legacy-bundle": "nvs add 12.17 && $(nvs which 12.17) test-bundle/run.cjs && $(nvs which 12.17) test-bundle/run-advanced.cjs", |
40 | 40 | "docs": "api-extractor run --local && rm docs/fast-check.api.json && typedoc --out docs src/fast-check-default.ts && node postbuild/main.mjs",
|
41 | 41 | "docs-ci": "cross-env EXPECT_GITHUB_SHA=true yarn docs",
|
42 | 42 | "docs:serve": "yarn dlx serve docs/"
|
|
0 commit comments