Skip to content

Commit 5e90937

Browse files
wip: swap yarn with pnpm etc
1 parent 1403c23 commit 5e90937

File tree

4 files changed

+1368
-5267
lines changed

4 files changed

+1368
-5267
lines changed

package.json

+27-35
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,42 @@
55
"type": "commonjs",
66
"main": "chessground.js",
77
"typings": "chessground.d.ts",
8+
"exports": {
9+
".": "./dist/chessground.js",
10+
"./*": "./dist/*.js"
11+
},
12+
"typesVersions": {
13+
"*": {
14+
"*": [
15+
"dist/*"
16+
]
17+
}
18+
},
819
"dependencies": {},
920
"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"
3228
},
3329
"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",
4032
"lint": "eslint src/*.ts",
33+
"format": "prettier --write .",
4134
"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"
4437
},
4538
"files": [
46-
"/*.js",
47-
"/*.d.ts",
48-
"/*.js.map",
39+
"/dist/*.js",
40+
"/dist/*.d.ts",
41+
"/dist/*.js.map",
4942
"/assets/*.css",
50-
"/src/*.ts",
51-
"!/gulpfile.js"
43+
"/src/*.ts"
5244
],
5345
"repository": "https://github.com/Mind-Sports-Games/chessground",
5446
"keywords": [

0 commit comments

Comments
 (0)