Prevent accidentally publishing source to npm
This commit is contained in:
1 parent
c950c73e76
commit
f613ba25c2
2 files changed
+2
-1
No files matched your search
@@ -145,6 +145,7 @@ async function init(): Promise<void> {
|
|||||||
fs.readFileSync(path.resolve(INPUT_DIR, "package.json")).toString()
|
fs.readFileSync(path.resolve(INPUT_DIR, "package.json")).toString()
|
||||||
);
|
);
|
||||||
delete packageJson["devDependencies"];
|
delete packageJson["devDependencies"];
|
||||||
|
delete packageJson["private"];
|
||||||
packageJson["scripts"] = {
|
packageJson["scripts"] = {
|
||||||
install: packageJson["scripts"].install,
|
install: packageJson["scripts"].install,
|
||||||
configure: packageJson["scripts"].configure,
|
configure: packageJson["scripts"].configure,
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
],
|
],
|
||||||
"author": "Zaid Abdulla <zaid@genieacs.com>",
|
"author": "Zaid Abdulla <zaid@genieacs.com>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"preferGlobal": true,
|
"private": true,
|
||||||
"directories": {
|
"directories": {
|
||||||
"bin": "bin",
|
"bin": "bin",
|
||||||
"tools": "tools"
|
"tools": "tools"
|
||||||
|
|||||||
Reference in new issue
Block a user