Skip to content

Commit

Permalink
feat(Build/Lib): Setting build lib without babel and webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Ventura committed Mar 9, 2020
1 parent 071dd3a commit a85472e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions babel.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"bin": "./lib/index.js",
"scripts": {
"clean": "rimraf lib",
"build": "cpy --dot src/files lib/files && babel src -d lib",
"build": "ncp src lib",
"prebuild": "yarn clean",
"prepublishOnly": "yarn build",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
Expand Down Expand Up @@ -42,7 +42,6 @@
"@babel/preset-env": "^7.8.7",
"babel-eslint": "^10.1.0",
"conventional-changelog-cli": "^2.0.31",
"cpy-cli": "^3.1.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.19.1",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function readJS(path) {
return new Promise(resolve => {
try {
// eslint-disable-next-line no-undef
const file = __non_webpack_require__(path)
const file = require(path)
resolve(file)
} catch (err) {
console.log('erro ', path)
Expand Down

0 comments on commit a85472e

Please sign in to comment.