From ac57e5c25509b62dc8281a2f5178de88ffcb954a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 27 Oct 2017 22:21:56 -0700 Subject: [PATCH] Do not require the user to have JSON5 (npm sucks). --- .gitignore | 1 - make | 2 +- package.json | 29 +++++++++++++++++++++++++++++ package.json5 | 1 + 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 2716eb6..532ff16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /lib /node_modules /npm-debug.log -/package.json diff --git a/make b/make index d170499..c5d097d 100755 --- a/make +++ b/make @@ -1,5 +1,5 @@ #!/bin/bash set -e -json5 -c package.json5 +node_modules/.bin/json5 -c package.json5 rpl XXX $(git describe --tags --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@;s@%@~@g') package.json npm run prepare diff --git a/package.json b/package.json new file mode 100644 index 0000000..b8f52ef --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "logizomai", + "version": "0.9.2+3.gc5eca40", + "license": "AGPL-3.0", + "author": { + "name": "Jay Freeman (saurik)", + "email": "saurik@saurik.com", + "url": "http://www.saurik.com/" + }, + "description": "Deterministic Finalization via Reference Counting", + "repository": { + "type": "git", + "url": "https://git.saurik.com/logizomai.git" + }, + "scripts": { + "build": "tsc", + "lint": "tslint --project .", + "prepare": "npm run build && npm run lint" + }, + "main": "lib/index.js", + "types": "lib/index.d.ts", + "devDependencies": { + "@types/node": "8.0.15", + "browserify": "14.4.0", + "json5": "0.5.1", + "tsify": "3.0.1", + "typescript": "2.5.2" + } +} \ No newline at end of file diff --git a/package.json5 b/package.json5 index b33e7b2..a9723a6 100644 --- a/package.json5 +++ b/package.json5 @@ -22,6 +22,7 @@ "devDependencies": { "@types/node": "8.0.15", "browserify": "14.4.0", + "json5": "0.5.1", "tsify": "3.0.1", "typescript": "2.5.2", } -- 2.45.2