diff --git a/build.js b/build.js index bd2760f..a644cf0 100644 --- a/build.js +++ b/build.js @@ -130,7 +130,7 @@ function compile() { const packagejson = path.join(NPM_DIR, 'package.json'); const json = JSON.parse(fs.readFileSync(packagejson)); if (json['scripts']) { - delete json['scripts']['postinstall']; + delete json['scripts']['prepare']; } const searchValue = './' + NPM_DIR + '/'; const replaceValue = './'; diff --git a/package.json b/package.json index 4b9eabb..271c2c2 100644 --- a/package.json +++ b/package.json @@ -41,12 +41,11 @@ "integration:aot": "cd integration && npm run e2e:aot", "lint": "tslint ./src/**/*.ts -t verbose", "release": "standard-version", - "postinstall": "postinstall-build --only-as-dependency dist \"npm run build && node postinstall.js\"" + "prepare": "npm run build" }, "dependencies": { "codemirror-minified": "5.44.0", "jointjs": "2.2.1", - "postinstall-build": "5.0.3", "ts-disposables": "2.2.3" }, "peerDependencies": { @@ -82,7 +81,7 @@ "jasmine-core": "2.5.2", "jointjs": "2.2.1", "jquery": "3.1.1", - "jshint": "2.6.3", + "jshint": "2.10.2", "karma": "1.5.0", "karma-chrome-launcher": "2.0.0", "karma-cli": "1.0.1", @@ -107,56 +106,5 @@ "uglify-js": "3.3.23", "zone.js": "0.8.29", "rxjs-compat": "^6.4.0" - }, - "buildDependencies": [ - "@angular/core", - "@angular/forms", - "@angular/platform-browser", - "@angular/common", - "@angular/compiler", - "@angular/compiler-cli", - "@angular/platform-browser", - "@angular/platform-browser-dynamic", - "@angular/platform-server", - "@types/codemirror", - "@types/lodash", - "@types/backbone", - "@types/jquery", - "@types/jasmine", - "@types/node", - "codemirror-minified", - "jointjs", - "jquery", - "ts-disposables", - "camelcase", - "chalk", - "concurrently", - "core-js", - "glob", - "jasmine-core", - "karma", - "karma-chrome-launcher", - "karma-cli", - "karma-html-reporter", - "karma-jasmine", - "karma-jasmine-html-reporter", - "lite-server", - "ngx-bootstrap", - "node-sass", - "rimraf", - "rollup", - "rollup-plugin-sourcemaps", - "rollup-plugin-node-resolve", - "rollup-plugin-commonjs", - "rxjs", - "standard-version", - "systemjs", - "shelljs", - "tslint", - "typescript", - "uglify-js", - "zone.js", - "gulp", - "gulp-inline-ng2-template" - ] + } } diff --git a/src/lib/shared/shapes.ts b/src/lib/shared/shapes.ts index 99f1922..18160c3 100644 --- a/src/lib/shared/shapes.ts +++ b/src/lib/shared/shapes.ts @@ -239,7 +239,7 @@ joint.shapes.flo.ElementView = joint.dia.ElementView.extend({ _tempOpacity: 1.0, _hovering: false, - dragLinkStart: function(evt, magnet, x, y) { + dragLinkStart: function(evt: any, magnet: any, x: number, y: number) { this.model.startBatch('add-link'); @@ -257,7 +257,7 @@ joint.shapes.flo.ElementView = joint.dia.ElementView.extend({ this.eventData(evt, { linkView: linkView }); }, - addLinkFromMagnet: function(magnet, x, y) { + addLinkFromMagnet: function(magnet: any, x: number, y: number) { const paper = this.paper; const graph = paper.model;