Skip to content

Commit 0540b1a

Browse files
build: add source-maps to debug build (#554)
1 parent 41c28bc commit 0540b1a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = {
1111
env: {
1212
node: true,
1313
},
14+
ignorePatterns: [
15+
'dist/**'
16+
],
1417
rules: {
1518
'implicit-arrow-linebreak': 0,
1619
'import/no-extraneous-dependencies': [

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
"simple-git": "1.65.0"
6464
},
6565
"scripts": {
66-
"build": "./node_modules/.bin/babel src --out-dir dist && echo '\n\\033[0;34m[+] \\033[0;32mBuild done\\033[0m'",
67-
"build:watch": "onchange 'src/**/*.js' 'node_modules/forest-express/dist/*' --no-exclude -i -- yarn build",
66+
"build": "babel --out-dir dist src",
67+
"build:watch": "onchange 'src/**/*.js' 'node_modules/forest-express/dist/*' --no-exclude -i -- babel --source-maps inline --out-dir dist src",
6868
"lint": "./node_modules/eslint/bin/eslint.js .eslint-bin src test",
6969
"test": "jest --runInBand",
7070
"test:coverage": "jest --runInBand --coverage --collectCoverageFrom=\"src/**/*.{ts,js}\""

0 commit comments

Comments
 (0)