From 577e619089b10b83cc4f37ece4598db0587ea095 Mon Sep 17 00:00:00 2001 From: Marco Lipparini Date: Sun, 16 Jul 2023 04:18:22 +0200 Subject: [PATCH] Copying binaries during "install" instead of "postinstall" --- .npmignore | 9 --------- .prettierignore | 1 + postinstall.js => lifecycle.js | 0 package.json | 8 ++++---- 4 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 .npmignore create mode 100644 .prettierignore rename postinstall.js => lifecycle.js (100%) diff --git a/.npmignore b/.npmignore deleted file mode 100644 index debfa42..0000000 --- a/.npmignore +++ /dev/null @@ -1,9 +0,0 @@ -.github -build -src - -*.log -.DS_Store -node_modules -.cache -*.lock \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/postinstall.js b/lifecycle.js similarity index 100% rename from postinstall.js rename to lifecycle.js diff --git a/package.json b/package.json index ad13b01..eca475b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mep-agency/local-dev-db", - "version": "1.0.0-alpha3", + "version": "1.0.0-alpha4", "private": false, "description": "A zero-config local MariaDB instance for local development (using Docker)", "author": "Marco Lipparini ", @@ -21,11 +21,11 @@ "url": "https://github.com/mep-agency/local-dev-db/issues" }, "scripts": { - "build": "rm -rf ./bin && rm -rf ./build && tsc && pkg -c package.json ./build/src/index.js && yarn postinstall", + "build": "rm -rf ./bin && rm -rf ./build && tsc && pkg -c package.json ./build/src/index.js", "watch": "tsc --watch", "format": "prettier --write \"**/*.{ts,md,scss,css,js}\"", "lint": "prettier --check \"**/*.{ts,md,scss,css,js}\"", - "postinstall": "node postinstall.js install" + "install": "node lifecycle.js install" }, "bin": { "ldd": "./ldd" @@ -33,7 +33,7 @@ "files": [ "bin", "docker", - "postinstall.js", + "lifecycle.js", "LICENCE", "README.md" ],