More fixes

This commit is contained in:
Bill 2022-03-15 16:19:16 -04:00
parent 42bb43d839
commit 30e156a77b
2 changed files with 3 additions and 38 deletions

View File

@ -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",

View File

@ -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();