From 30e156a77b45e3eb7d83cf119b2a2a83616762b8 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 15 Mar 2022 16:19:16 -0400 Subject: [PATCH] More fixes --- package.json | 7 +++---- post-install.js | 34 ---------------------------------- 2 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 post-install.js diff --git a/package.json b/package.json index 78137436..28f45466 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,11 @@ "version": "2.0.0", "private": true, "scripts": { - "start": "craco start", - "build": "GENERATE_SOURCEMAP=false BROWSER=none craco build", + "start": "BROWSER=none craco start", + "build": "GENERATE_SOURCEMAP=false craco build", "build:prod": "npx browserslist@latest --update-db && yarn build", "test": "craco test", - "eject": "react-scripts eject", - "postinstall": "node ./post-install.js" + "eject": "react-scripts eject" }, "dependencies": { "@craco/craco": "^6.3.0", diff --git a/post-install.js b/post-install.js deleted file mode 100644 index d4eed00d..00000000 --- a/post-install.js +++ /dev/null @@ -1,34 +0,0 @@ -import { request as httpsRequest } from 'https'; - -function install() -{ - try - { - const params = {}; - - params['packageName'] = process.env.npm_package_name; - params['packageVersion'] = process.env.npm_package_version; - - const data = JSON.stringify(params); - const request = httpsRequest({ - hostname: 'install.nitrots.co', - port: 443, - path: '/collect', - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Content-Length': data.length - } - }); - - request.write(data); - request.end(); - } - - catch (e) - { - // - } -} - -install();