From 54eaf96634c76724af1509e9556130097f9c8997 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Wed, 14 Jan 2015 18:28:28 +0800 Subject: [PATCH] Change npm dev script to use two-step npm link. --- omega-pac/package.json | 3 +++ omega-target-chromium-extension/package.json | 2 +- omega-target-chromium-extension/src/inspect.coffee | 3 ++- omega-target/package.json | 2 +- omega-web/package.json | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/omega-pac/package.json b/omega-pac/package.json index 3d410bd..0560646 100644 --- a/omega-pac/package.json +++ b/omega-pac/package.json @@ -23,5 +23,8 @@ "browser": { "uglify-js": "./uglifyjs-shim.js", "uglify-js-real": "./uglifyjs.js" + }, + "scripts": { + "dev": "npm link" } } diff --git a/omega-target-chromium-extension/package.json b/omega-target-chromium-extension/package.json index 9a1cdbe..a537cdc 100644 --- a/omega-target-chromium-extension/package.json +++ b/omega-target-chromium-extension/package.json @@ -27,6 +27,6 @@ "omega-target": "./omega_target_shim.js" }, "scripts": { - "dev": "npm link ../omega-target; npm link ../omega-web" + "dev": "npm link omega-target; npm link omega-web" } } diff --git a/omega-target-chromium-extension/src/inspect.coffee b/omega-target-chromium-extension/src/inspect.coffee index edc80b4..279ca64 100644 --- a/omega-target-chromium-extension/src/inspect.coffee +++ b/omega-target-chromium-extension/src/inspect.coffee @@ -4,7 +4,8 @@ Promise = OmegaTarget.Promise module.exports = class Inspect _enabled: false - constructor: (@onInspect) -> + constructor: (onInspect) -> + @onInspect = onInspect enable: -> # We don't need this API. However its presence indicates that Chrome >= 35, diff --git a/omega-target/package.json b/omega-target/package.json index eb464c0..749d3e2 100644 --- a/omega-target/package.json +++ b/omega-target/package.json @@ -25,6 +25,6 @@ "omega-pac": "./omega_pac_shim.js" }, "scripts": { - "dev": "npm link ../omega-pac" + "dev": "npm link omega-pac; npm link" } } diff --git a/omega-web/package.json b/omega-web/package.json index 15e0a9e..12e2d2c 100644 --- a/omega-web/package.json +++ b/omega-web/package.json @@ -20,6 +20,6 @@ "omega-pac": "../omega-pac" }, "scripts": { - "dev": "npm link ../omega-pac" + "dev": "npm link omega-pac; npm link" } }