Skip to content

Commit

Permalink
fix(tsc): change output dir and disable declaration files
Browse files Browse the repository at this point in the history
export the original .ts files instead of creating .d.ts files
  • Loading branch information
tusharmath committed Dec 8, 2016
1 parent 56c1199 commit ca271cb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ src/**/*.d.ts
test/**/*.js
test/**/*.d.ts
typings/
.vscode/
.vscode/
*.js
*.d.ts
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_install:
before_script:
- npm prune
- npm run lint
- npm run benchmark | node .dist/travis-comment
- npm run benchmark | node ./travis-comment
- npm run coverage
after_success:
- npm run semantic-release
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "observable-air",
"description": "Observables for the calorie conscious",
"main": ".dist/src/main",
"main": "./src/main",
"jsnext:main": "./.dist/main-es.min",
"typings": ".dist/src/main.d.ts",
"typings": "./src/main.ts",
"scripts": {
"benchmark": "node .dist/benchmarks/run",
"benchmark-save": "node .dist/benchmarks/run > benchmarks/benchmark.txt",
"benchmark": "tsc && node ./benchmarks/run",
"benchmark-save": "npm run benchmark > benchmarks/benchmark.txt",
"cleanup": "find ./src -type f -name '*.js' -delete && find ./src -type f -name '*.map' -delete",
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
"hydra": "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm .dist/benchmarks/run",
"lint": "tslint ./src/**.ts ./src/**/*.ts ./test/*.ts",
"prepublish": "tsc && npm run build && npm run build-min",
"rfc": "node chore/rfc",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "tsc && ava .dist/test",
"test": "tsc && ava",
"build": "npm run build-es && npm run build-cjs",
"build-min": "npm run build-es-min && npm run build-cjs-min",
"build-es": "rollup -c",
"build-es-min": "babel .dist/main-es.js > .dist/main-es.min.js",
"build-cjs": "browserify .dist/src/main.js > .dist/main-cjs.js",
"build-cjs": "browserify ./src/main.js > .dist/main-cjs.js",
"build-cjs-min": "babel .dist/main-cjs.js > .dist/main-cjs.min.js"
},
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import commonjs from 'rollup-plugin-commonjs'

export default {
exports: 'named',
entry: './.dist/src/main.js',
entry: './src/main.js',
dest: './.dist/main-es.js',
plugins: [
commonjs({})
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"target": "es6",
"noImplicitAny": true,
"sourceMap": true,
"declaration": true,
"declaration": false,
"strictNullChecks": true,
"removeComments": true,
"outDir": ".dist"
"removeComments": true
}
}

0 comments on commit ca271cb

Please sign in to comment.