Skip to content

Commit

Permalink
Revert "Merge pull request #167 from schlawg/master"
Browse files Browse the repository at this point in the history
This reverts commit b4fb8e9, reversing
changes made to 18cd6ae.
  • Loading branch information
niklasf committed Jan 28, 2024
1 parent b4fb8e9 commit 76466f7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 20 deletions.
68 changes: 49 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,9 @@
"author": "Niklas Fiekas <[email protected]>",
"funding": "https://github.com/sponsors/niklasf",
"license": "GPL-3.0-or-later",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
},
"./*": {
"import": "./dist/esm/*.js",
"require": "./dist/cjs/*.js",
"types": "./dist/types/*.d.ts"
}
},
"module": "index.js",
"types": "index.d.ts",
"type": "module",
"sideEffects": false,
"dependencies": {
"@badrap/result": "^0.2"
Expand All @@ -45,17 +33,59 @@
"typescript": "^5"
},
"scripts": {
"prepare": "tsc --declarationDir dist/types",
"build": "tsc --declarationDir dist/types && tsc --outDir dist/cjs --module commonjs -d false",
"prepublishOnly": "pnpm build && find dist -name '*.test.*' -exec rm {} +",
"prepare": "tsc",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"doc": "typedoc src/types.ts src/attacks.ts src/util.ts src/squareSet.ts src/board.ts src/setup.ts src/chess.ts src/compat.ts src/debug.ts src/fen.ts src/san.ts src/transform.ts src/variant.ts src/pgn.ts",
"lint": "eslint src/*.ts",
"format": "dprint fmt",
"check-format": "dprint check"
},
"files": [
"dist",
"attacks.js",
"board.js",
"chess.js",
"compat.js",
"variant.js",
"transform.js",
"setup.js",
"squareSet.js",
"types.js",
"util.js",
"debug.js",
"fen.js",
"san.js",
"pgn.js",
"index.js",
"attacks.d.ts",
"board.d.ts",
"chess.d.ts",
"compat.d.ts",
"variant.d.ts",
"transform.d.ts",
"setup.d.ts",
"squareSet.d.ts",
"types.d.ts",
"util.d.ts",
"debug.d.ts",
"fen.d.ts",
"san.d.ts",
"pgn.d.ts",
"index.d.ts",
"attacks.js.map",
"board.js.map",
"chess.js.map",
"compat.js.map",
"variant.js.map",
"transform.js.map",
"setup.js.map",
"squareSet.js.map",
"types.js.map",
"util.js.map",
"debug.js.map",
"fen.js.map",
"san.js.map",
"pgn.js.map",
"index.js.map",
"src/attacks.ts",
"src/board.ts",
"src/chess.ts",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"lib": ["ES2018"],
"module": "esnext",
"esModuleInterop": true,
"outDir": "dist/esm",
"outDir": "",
"declarationDir": "",
"declaration": true,
"sourceMap": true
},
Expand Down

0 comments on commit 76466f7

Please sign in to comment.