Skip to content

Commit

Permalink
fix: drop support for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardxhong committed May 30, 2022
1 parent fe7804a commit 9b787c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn
- run: yarn build:esm && yarn build:cjs
- run: yarn build:esm
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"name": "@react-chess/chessground",
"version": "1.2.3",
"description": "Chessground react wrapper",
"main": "build/cjs/index.js",
"main": "build/esm/index.js",
"module": "build/esm/index.js",
"types": "build/esm/index.d.ts",
"files": [
"build"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0",
"build:cjs": "tsc --module commonjs --outDir build/cjs",
"build:esm": "tsc",
"lint": "eslint . --ignore-path .gitignore --ext .tsx"
},
Expand Down

0 comments on commit 9b787c4

Please sign in to comment.