Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
fix(build): transpile CJS bundle to ES5 syntax (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jul 9, 2020
1 parent 81ba716 commit 4be2cb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"build": "yarn build:es && yarn build:cjs",
"build:es": "tsc",
"build:cjs": "tsc --module commonjs --outDir './dist/cjs'",
"build:cjs": "tsc --project tsconfig.cjs.json",
"start": "tsc --watch",
"lint": "foundry run eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "yarn lint --fix",
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"target": "es5",
"outDir": "./dist/cjs"
}
}

0 comments on commit 4be2cb1

Please sign in to comment.