From 31b80f414f075938a39c44cdb423cef93b91e4d7 Mon Sep 17 00:00:00 2001 From: Zach Shipley Date: Sun, 10 Apr 2016 17:21:02 -0500 Subject: [PATCH] Changing ES6 module-formatted Lavaca to be the main "lavaca" npm package --- README.md | 2 +- _scripts/build | 2 +- _scripts/changePackageName.js | 2 ++ package.json | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f2a0d59..343d7c1c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ you're going with the source route, Lavaca has three flavors available: - `npm install lavaca-amd`: AMD format - `npm install lavaca-commonjs`: CommonJS format -- `npm install lavaca-es6`: ES6 module format +- `npm install lavaca`: ES6 module format ## Documentation diff --git a/_scripts/build b/_scripts/build index cdc600d0..13fe8a11 100755 --- a/_scripts/build +++ b/_scripts/build @@ -23,7 +23,7 @@ case "$1" in es) mkdir -p build/es cp -a src/* build/es/ - node _scripts/changePackageName.js lavaca-es > build/es/package.json + node _scripts/changePackageName.js lavaca > build/es/package.json ;; amd) mkdir -p build/amd diff --git a/_scripts/changePackageName.js b/_scripts/changePackageName.js index d2c72629..dfd3d8b4 100644 --- a/_scripts/changePackageName.js +++ b/_scripts/changePackageName.js @@ -4,4 +4,6 @@ var path = require('path'); var json = fs.readFileSync(path.resolve(__dirname, '../package.json')); var pkg = JSON.parse(json); pkg.name = process.argv[2]; +delete pkg.devDependencies; +delete pkg.scripts; process.stdout.write(JSON.stringify(pkg, false, 4) + '\n'); diff --git a/package.json b/package.json index c081e951..a49dcc57 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lavaca", "description": "A curated collection of tools built for mobile.", - "version": "4.0.0-alpha.1", + "version": "4.0.0-alpha.2", "homepage": "https://github.com/mutualmobile/lavaca", "author": { "name": "mutualmobile",