From de5ffe50038c7dea6d2c515e3721f8c645b86272 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Sun, 26 Feb 2017 22:23:13 +0200 Subject: [PATCH] tools: move build-native.js to tools * Move `build-native.js` to `tools/` * Update the NPM scripts * Make `tools/build-native.js` executable PR-URL: https://github.com/metarhia/JSTP/pull/89 --- package.json | 4 ++-- build-native.js => tools/build-native.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) rename build-native.js => tools/build-native.js (98%) mode change 100644 => 100755 diff --git a/package.json b/package.json index 0987cb6a..d6884cbf 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,8 @@ "lint": "eslint . && remark .", "install": "npm run rebuild-node", "build": "npm run build-node && npm run build-browser", - "build-node": "node build-native", - "rebuild-node": "node build-native --rebuild", + "build-node": "node tools/build-native", + "rebuild-node": "node tools/build-native --rebuild", "build-browser": "webpack --progress --colors", "prepublish": "npm run build-browser", "pretest": "npm run build-node" diff --git a/build-native.js b/tools/build-native.js old mode 100644 new mode 100755 similarity index 98% rename from build-native.js rename to tools/build-native.js index 1f20b7b5..765739db --- a/build-native.js +++ b/tools/build-native.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + 'use strict'; const fs = require('fs');