From 404acfae4987fc6b0b681a88a99172ff7cdcb470 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Thu, 10 Jul 2014 17:19:17 +0000 Subject: [PATCH] install -> prepublish, add version --- package.json | 3 ++- package.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a13577970..dd9590c04 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { "name": "sinopia", + "version": "0.0.0", "dependencies": {"js-yaml": "*"}, - "scripts": {"install": "js-yaml package.yaml > package.json ; npm install --production"} + "scripts": {"prepublish": "js-yaml package.yaml > package.json ; npm install --production"} } diff --git a/package.yaml b/package.yaml index 182ddfa85..38c9dcbb4 100644 --- a/package.yaml +++ b/package.yaml @@ -56,7 +56,7 @@ keywords: scripts: test: mocha ./test/functional ./test/unit lint: eslint -c ./.eslint.yaml ./lib - build: js-yaml package.yaml > package.json + prepublish: js-yaml package.yaml > package.json # we depend on streams2 stuff # it can be replaced with isaacs/readable-stream, ask if you need to use 0.8