|
5 | 5 | "type": "commonjs",
|
6 | 6 | "main": "chessground.js",
|
7 | 7 | "typings": "chessground.d.ts",
|
| 8 | + "exports": { |
| 9 | + ".": "./dist/chessground.js", |
| 10 | + "./*": "./dist/*.js" |
| 11 | + }, |
| 12 | + "typesVersions": { |
| 13 | + "*": { |
| 14 | + "*": [ |
| 15 | + "dist/*" |
| 16 | + ] |
| 17 | + } |
| 18 | + }, |
8 | 19 | "dependencies": {},
|
9 | 20 | "devDependencies": {
|
10 |
| - "@types/chai": "^4.2.12", |
11 |
| - "@types/mocha": "^8.0.1", |
12 |
| - "@typescript-eslint/eslint-plugin": "^4.32.0", |
13 |
| - "@typescript-eslint/parser": "^4.32.0", |
14 |
| - "browserify": "^16", |
15 |
| - "chai": "^4.2.0", |
16 |
| - "eslint": "^7", |
17 |
| - "fancy-log": "^1.3.3", |
18 |
| - "gulp": "^4", |
19 |
| - "gulp-size": "^3", |
20 |
| - "gulp-sourcemaps": "^2.6.4", |
21 |
| - "gulp-terser": "^1", |
22 |
| - "jsdom": "10.0.0", |
23 |
| - "jsdom-global": "3.0.2", |
24 |
| - "mocha": "^8.1.0", |
25 |
| - "prettier": "^2", |
26 |
| - "ts-node": "^8.10.2", |
27 |
| - "tsify": "^4", |
28 |
| - "typescript": "^4.4.4", |
29 |
| - "vinyl-buffer": "^1.0.1", |
30 |
| - "vinyl-source-stream": "^2", |
31 |
| - "watchify": "^3.11.0" |
| 21 | + "@typescript-eslint/eslint-plugin": "^7.7.0", |
| 22 | + "@typescript-eslint/parser": "^7.7.0", |
| 23 | + "@types/node": "20.12.2", |
| 24 | + "esbuild": "^0.20.2", |
| 25 | + "eslint": "^8.57.0", |
| 26 | + "prettier": "^3.2.5", |
| 27 | + "typescript": "^5.4.5" |
32 | 28 | },
|
33 | 29 | "scripts": {
|
34 |
| - "prepare": "npm run compile", |
35 |
| - "pretest": "npm run compile", |
36 |
| - "test": "mocha -r ts-node/register -r jsdom-global/register 'tests/**/*.test.ts'", |
37 |
| - "prepublish": "npm run compile", |
38 |
| - "compile": "tsc", |
39 |
| - "format": "prettier --write .", |
| 30 | + "prepare": "$npm_execpath run compile", |
| 31 | + "compile": "tsc --sourceMap --declaration", |
40 | 32 | "lint": "eslint src/*.ts",
|
| 33 | + "format": "prettier --write .", |
41 | 34 | "check-format": "prettier --check .",
|
42 |
| - "dev": "gulp dev", |
43 |
| - "prod": "gulp prod" |
| 35 | + "bundle": "esbuild src/chessground.ts --bundle --format=esm --outfile=dist/chessground.min.js --minify", |
| 36 | + "dist": "$npm_execpath run compile && $npm_execpath run bundle" |
44 | 37 | },
|
45 | 38 | "files": [
|
46 |
| - "/*.js", |
47 |
| - "/*.d.ts", |
48 |
| - "/*.js.map", |
| 39 | + "/dist/*.js", |
| 40 | + "/dist/*.d.ts", |
| 41 | + "/dist/*.js.map", |
49 | 42 | "/assets/*.css",
|
50 |
| - "/src/*.ts", |
51 |
| - "!/gulpfile.js" |
| 43 | + "/src/*.ts" |
52 | 44 | ],
|
53 | 45 | "repository": "https://github.com/Mind-Sports-Games/chessground",
|
54 | 46 | "keywords": [
|
|
0 commit comments