Skip to content

Commit

Permalink
fix(build): Fix the build to hopefully publish correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Miller committed Oct 20, 2017
1 parent 8ce687c commit 73eea44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ script:
- npm run run-script
after_success:
- npm run semantic-release
- npm run release
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"scripts": {
"build": "tsc --outDir dist/ && cp ./package.json ./dist/",
"test": "jest",
"semantic-release": "semantic-release pre && (npm run build && cd ./dist && npm publish) && semantic-release post",
"semantic-release": "semantic-release pre && semantic-release post",
"lint": "tslint --project tsconfig.json --fix --format stylish",
"run-script": "npm run lint && npm run build && npm run test",
"precommit": "./scripts/pre-commit.sh",
"prepush": "npm run test",
"commitmsg": "validate-commit-msg"
"commitmsg": "validate-commit-msg",
"release": "npm run build && cd ./dist/ && npm publish"
},
"devDependencies": {
"@types/jest": "^19.2.2",
Expand All @@ -45,11 +46,7 @@
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(dist|src)/.*\\.spec\\.(js|ts)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
]
"moduleFileExtensions": ["ts", "tsx", "js"]
},
"prettier": {
"semi:": false,
Expand All @@ -59,4 +56,4 @@
"printWidth": 100
},
"dependencies": {}
}
}

0 comments on commit 73eea44

Please sign in to comment.