From 22ddbc63c3e63302f24158d76523d096e8f347b6 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 28 Jun 2017 11:54:05 +0100 Subject: [PATCH] Make lib dir prior to building -p option will not error if lib already exists --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cd0946ffc8..d5dcff831d 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,9 @@ "scripts": { "reskindex": "node scripts/reskindex.js -h header", "reskindex:watch": "node scripts/reskindex.js -h header -w", - "build": "npm run emoji-data-strip && npm run reskindex && babel src -d lib --source-maps", - "build:watch": "npm run emoji-data-strip && babel src -w -d lib --source-maps", + "build:init": "mkdir -p lib && npm run emoji-data-strip", + "build": "npm run build:init && npm run reskindex && babel src -d lib --source-maps", + "build:watch": "npm run build:init && babel src -w -d lib --source-maps", "emoji-data-strip": "node scripts/emoji-data-strip.js", "start": "parallelshell \"npm run build:watch\" \"npm run reskindex:watch\"", "lint": "eslint src/",