|
1 | 1 | {
|
2 | 2 | "name": "tstest",
|
3 |
| - "version": "0.5.16", |
| 3 | + "version": "0.7.0", |
4 | 4 | "description": "Testing Utilities for Helping You to Write Better TypeScript Programs",
|
5 |
| - "main": "dist/src/mod.js", |
6 |
| - "typings": "dist/src/mod.d.ts", |
| 5 | + "type": "module", |
| 6 | + "exports": { |
| 7 | + ".": { |
| 8 | + "import": "./dist/esm/src/mod.js", |
| 9 | + "require": "./dist/cjs/src/mod.js" |
| 10 | + } |
| 11 | + }, |
| 12 | + "typings": "./dist/esm/src/mod.d.ts", |
| 13 | + "engines": { |
| 14 | + "node": ">=16", |
| 15 | + "npm": ">=7" |
| 16 | + }, |
7 | 17 | "scripts": {
|
8 |
| - "build": "tsc", |
9 | 18 | "clean": "shx rm -fr dist/*",
|
10 |
| - "dist": "npm run clean && npm run build", |
11 |
| - "pack": "npm pack", |
12 |
| - "lint": "npm run lint:es && npm run lint:ts", |
| 19 | + "dist": "npm-run-all clean build dist:commonjs", |
| 20 | + "build": "tsc && tsc -p tsconfig.cjs.json", |
| 21 | + "dist:commonjs": "jq -n \"{ type: \\\"commonjs\\\" }\" > dist/cjs/package.json", |
| 22 | + "lint": "npm-run-all lint:es lint:ts", |
13 | 23 | "lint:es": "eslint --ignore-pattern tests/fixtures/ '{bin,examples,scripts,src,tests}/**/*.ts'",
|
14 |
| - "lint:ts": "tsc --noEmit", |
| 24 | + "lint:ts": "tsc --isolatedModules --noEmit", |
15 | 25 | "test:pack": "bash -x scripts/npm-pack-testing.sh",
|
16 |
| - "test": "tap --node-arg=--require=ts-node/register \"src/**/*.spec.ts\" \"src/*.spec.ts\" \"tests/*.spec.ts\" \"tests/**/*.spec.ts\"" |
| 26 | + "test": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" tap \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"" |
17 | 27 | },
|
18 | 28 | "repository": {
|
19 | 29 | "type": "git",
|
|
32 | 42 | },
|
33 | 43 | "homepage": "https://github.com/huan/tstest#readme",
|
34 | 44 | "devDependencies": {
|
35 |
| - "@chatie/eslint-config": "^0.12.4", |
| 45 | + "@chatie/eslint-config": "^0.14.1", |
36 | 46 | "@chatie/git-scripts": "^0.6.2",
|
37 | 47 | "@chatie/semver": "^0.4.7",
|
38 |
| - "@chatie/tsconfig": "^0.16.2", |
| 48 | + "@chatie/tsconfig": "^0.20.2", |
| 49 | + "cross-env": "^7.0.3", |
| 50 | + "npm-run-all": "^4.1.5", |
39 | 51 | "read-pkg-up": "^7",
|
40 | 52 | "shx": "^0.3.3"
|
41 | 53 | },
|
|
51 | 63 | "pre-push": "npx git-scripts-pre-push"
|
52 | 64 | }
|
53 | 65 | },
|
| 66 | + "files": [ |
| 67 | + "dist", |
| 68 | + "src" |
| 69 | + ], |
54 | 70 | "publishConfig": {
|
55 | 71 | "tag": "next"
|
56 | 72 | }
|
|
0 commit comments