Skip to content

Commit 7b08f6e

Browse files
committed
Remove extra babel configs
1 parent c0f8ebf commit 7b08f6e

File tree

4 files changed

+4
-32
lines changed

4 files changed

+4
-32
lines changed

.babelrc.js

-14
This file was deleted.

babel.config.cjs.json

-12
This file was deleted.

babel.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[
44
"@babel/env",
55
{
6-
"modules": false,
6+
"modules": "commonjs",
77
"targets": ["last 2 versions", "not dead"]
88
}
99
],

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"name": "Leandro Augusto Lemos",
77
"url": "http://leandrowd.github.io/"
88
},
9-
"main": "lib/cjs/index.js",
10-
"module": "lib/es/index.js",
9+
"main": "lib/js/index.js",
1110
"types": "lib/ts/index.d.ts",
1211
"license": "MIT",
1312
"keywords": [
@@ -44,9 +43,8 @@
4443
"typecheck": "tsc -p tsconfig.json --noEmit",
4544
"update-snapshots": "jest --updateSnapshot",
4645
"build": "yarn lib:build",
47-
"lib:build": "yarn lib:build-cjs && yarn lib:build-es && yarn lib:build-styles && yarn lib:build-types",
48-
"lib:build-cjs": "babel ./src -d lib/cjs --ignore './src/__tests__' --extensions .ts,.tsx --config-file ./babel.config.cjs.json",
49-
"lib:build-es": "babel ./src -d lib/es --ignore './src/__tests__' --extensions .ts,.tsx --config-file ./babel.config.json",
46+
"lib:build": "yarn lib:build-js && yarn lib:build-styles && yarn lib:build-types",
47+
"lib:build-js": "babel ./src -d lib/js --ignore './src/__tests__' --extensions .ts,.tsx --config-file ./babel.config.json",
5048
"lib:build-styles": "mkdirp lib/styles && node-sass src/carousel.scss > lib/styles/carousel.css && node-sass --output-style compressed src/carousel.scss > lib/styles/carousel.min.css",
5149
"lib:build-types": "tsc -p tsconfig.types.json",
5250
"lib:pre-publish": "npm version patch && git push origin master",

0 commit comments

Comments
 (0)