@iannisz/node-cms
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -49,5 +49,9 @@ "use strict"; | ||
var node_json_database_1 = require("node-json-database"); | ||
var args = process.argv.slice(2); | ||
var workingDirectory = args[0]; | ||
process.chdir(workingDirectory); | ||
var path_1 = require("path"); | ||
// Go to the project root | ||
var cwd = path_1.resolve(process.cwd()); | ||
if (cwd.endsWith('/node_modules/@iannisz/node-cms')) { | ||
// Go from ./project/node_modules/@iannisz/node-cms to ./project | ||
process.chdir('./../../../'); | ||
} | ||
/* | ||
@@ -54,0 +58,0 @@ 1.1 Recursive rimraf |
@@ -27,8 +27,14 @@ /* | ||
import { db } from 'node-json-database' | ||
import { resolve as resolvePath } from 'path' | ||
const args = process.argv.slice(2) | ||
const workingDirectory = args[0] | ||
// Go to the project root | ||
process.chdir(workingDirectory) | ||
const cwd = resolvePath(process.cwd()) | ||
if (cwd.endsWith('/node_modules/@iannisz/node-cms')) { | ||
// Go from ./project/node_modules/@iannisz/node-cms to ./project | ||
process.chdir('./../../../') | ||
} | ||
/* | ||
@@ -35,0 +41,0 @@ 1.1 Recursive rimraf |
{ | ||
"name": "@iannisz/node-cms", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "Node CMS", | ||
"main": "index.js", | ||
"scripts": { | ||
"install": "node install.js $PWD" | ||
"install": "node install.js" | ||
}, | ||
@@ -9,0 +9,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
342492
7349