From 158435761f0da9a9c30d6d95c7485db66d88e9fb Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sun, 3 Dec 2017 17:36:39 +0800 Subject: [PATCH] Fix package version for npm build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2aa17e9..0a0518d 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ }, "scripts": { "build": "rimraf dist/ && node scripts/create-reftest-list && npm run build:npm && npm run build:browser", - "build:npm": "babel src/ -d dist/npm/ --plugins=dev-expression,transform-es2015-modules-commonjs && replace-in-file __VERSION__ '$npm_package_version' dist/npm/index.js", + "build:npm": "babel src/ -d dist/npm/ --plugins=dev-expression,transform-es2015-modules-commonjs && replace-in-file __VERSION__ '\"$npm_package_version\"' dist/npm/index.js", "build:browser": "webpack", "format": "prettier --single-quote --no-bracket-spacing --tab-width 4 --print-width 100 --write \"{src,tests,scripts}/**/*.js\"", "flow": "flow",