diff --git a/.gitignore b/.gitignore index f230ad5..4a363d3 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,4 @@ yarn-error.log* .idea/ -esm -lib \ No newline at end of file +dist \ No newline at end of file diff --git a/package.json b/package.json index 5ea919b..18eb047 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "scripts": { "test": "tsc --noEmit", "build": "npm run build-cjs && npm run build-esm", - "build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs", - "build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es2015", - "watch": "tsc --outDir dist/esm --module es2015 --watch" + "build-cjs": "rimraf ./dist/cjs && tsc --outDir dist/cjs --module commonjs", + "build-esm": "rimraf ./dist/esm && tsc --outDir dist/esm --module es6", + "watch": "tsc --outDir dist/esm --module es6 --watch" }, "dependencies": { "ra-core": "^4.10.3" diff --git a/tsconfig.json b/tsconfig.json index bf62aab..8e27f8f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "esModuleInterop": true, "module": "commonjs", "moduleResolution": "node", - "outDir": "lib", + "outDir": "dist", "rootDir": "src", "skipLibCheck": true, "strict": true,