Skip to content

Commit

Permalink
feat(build): change the default output dir to 'dist'
Browse files Browse the repository at this point in the history
BREAKING CHANGE: change the default output dir to 'dist'
closes #12
  • Loading branch information
GabeDuarteM committed Sep 16, 2018
1 parent 59f0d59 commit ef3fbb2
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package.json
package-lock.json
/node_modules
/build
/dist
/coverage
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ typings/
# Serverless directories
.serverless

/build
/dist
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package.json
package-lock.json
/node_modules
/build
/dist
/coverage
2 changes: 1 addition & 1 deletion babel.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./build/config/babelrc')
module.exports = require('./dist/config/babelrc')
2 changes: 1 addition & 1 deletion eslint.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./build/config/eslintrc')
module.exports = require('./dist/config/eslintrc')
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"kcd-scripts"
],
"bin": {
"gd-scripts": "build/index.js"
"gd-scripts": "dist/index.js"
},
"files": [
"build",
"dist",
"babel.js",
"eslint.js",
"prettier.js",
Expand Down
2 changes: 1 addition & 1 deletion prettier.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./build/config/prettierrc')
module.exports = require('./dist/config/prettierrc')
2 changes: 1 addition & 1 deletion semver.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./build/config/releaserc')
module.exports = require('./dist/config/releaserc')
4 changes: 2 additions & 2 deletions src/config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"strict": true,
"lib": ["esnext"],
"typeRoots": ["../../../../node_modules/@types", "../../../../src/@types"],
"outDir": "../../../../build",
"outDir": "../../../../dist",

"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"include": ["../../../../src/**/*"],
"exclude": [
"../../../../node_modules/**/*",
"../../../../build/**/*",
"../../../../dist/**/*",
"../../../../src/**/*.test.ts",
"../../../../src/**/*.test.js"
]
Expand Down
2 changes: 1 addition & 1 deletion src/paths.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const paths = {
output: 'build',
output: 'dist',
}

export default paths
2 changes: 1 addition & 1 deletion src/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (ignore.length > 0 && !isWatching) {
const buildIgnore = ignore[1]
.split(',')
.filter(x => x !== '**/*.d.ts') // Do not exclude type definitions
.map(x => `build/${x}`)
.map(x => `dist/${x}`)
.join(',')

rimraf.sync(`{${buildIgnore}}`)
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"strict": true,
"lib": ["esnext"],
"typeRoots": ["./node_modules/@types", "./src/@types"],
"outDir": "./build",
"outDir": "./dist",

"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"include": ["./src/**/*"],
"exclude": [
"./node_modules/**/*",
"./build/**/*",
"./dist/**/*",
"./src/**/*.test.ts",
"./src/**/*.test.tsx",
"./src/**/*.test.js",
Expand Down
2 changes: 1 addition & 1 deletion typescript.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "./build/config/tsconfig.json"
"extends": "./dist/config/tsconfig.json"
}

0 comments on commit ef3fbb2

Please sign in to comment.