Skip to content

Commit

Permalink
Improve build system.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrv committed Nov 1, 2018
1 parent d5c89eb commit 1331207
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 47 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
dist/
package-lock.json
*.lock
*.log.*
*.log
*.tgz
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ test/
src/
package-lock.json
.travis.yml
*.lock
*.log.*
*.log
*.tgz
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "cwait",
"version": "1.1.1",
"version": "1.1.2",
"description": "Limit number of promises running in parallel",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"browser": "dist/umd/index.js",
"typings": "dist/esm/index.d.ts",
"scripts": {
"tsc": "tsc",
"docts": "docts",
"tslint": "tslint",
"lint": "node src/checkver.js lt 4.1.2 || tslint --type-check -c src/tslint.json -p src/tsconfig.json",
"prepublish": "npm run lint && tsc -p src",
"rollup": "rollup",
"prepublish": "(checkver ge 5.0.0 && tsc -m es6 --outdir dist/esm -p src && rollup -c) || tsc -p src",
"test": "tsc -p test && node test/test.js"
},
"author": "Juha Järvi",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/charto/cwait.git"
"url": "https://github.com/charto/cwait.git"
},
"bugs": {
"url": "https://github.com/charto/cwait/issues"
Expand All @@ -33,11 +33,12 @@
"queue"
],
"devDependencies": {
"@types/bluebird": "^3.5.8",
"@types/node": "^8.0.19",
"bluebird": "^3.5.0",
"tslint": "^5.5.0",
"typescript": "^2.4.2"
"@types/bluebird": "^3.5.24",
"@types/node": "^10.12.1",
"autoroll": "0.1.0",
"bluebird": "^3.5.2",
"rollup": "^0.66.6",
"typescript": "^3.1.4"
},
"dependencies": {
"cdata": "^0.1.1"
Expand Down
8 changes: 8 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = require('autoroll')(
require('./package.json'),
{
include: [
'cdata'
]
}
);
2 changes: 1 addition & 1 deletion src/TaskQueue.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is part of cwait, copyright (c) 2015- BusFaster Ltd.
// Released under the MIT license, see LICENSE.

import { BinaryHeap } from 'cdata/dist/BinaryHeap';
import { BinaryHeap } from 'cdata';

import { Task, PromisyClass, tryFinally } from './Task';

Expand Down
30 changes: 0 additions & 30 deletions src/checkver.js

This file was deleted.

10 changes: 7 additions & 3 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
"compileOnSave": true,
"compilerOptions": {
"declaration": true,
"lib": ["es5", "es2015.collection"],
"declarationDir": "../dist/esm",
"lib": [ "es5", "es2015.collection" ],
"module": "commonjs",
"moduleResolution": "node",
"noEmitHelpers": true,
"noImplicitAny": true,
"noImplicitThis": true,
"outDir": "../dist",
"outDir": "../dist/cjs",
"removeComments": false,
"sourceMap": false,
"strictFunctionTypes": true,
"strictNullChecks": true,
"target": "es5"
"target": "es5",
"types": [ "node" ]
},
"files": [
"index.ts"
Expand Down

0 comments on commit 1331207

Please sign in to comment.