@iannisz/node-cms
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -93,3 +93,3 @@ "use strict"; | ||
// Create directory, if needed | ||
var directory = getDirectory('.' + page.path); | ||
var directory = getDirectory('./root' + page.path); | ||
if (!fs.existsSync(directory)) { | ||
@@ -100,4 +100,4 @@ fs.mkdirSync(directory); | ||
// Write the file | ||
fs.writeFileSync('.' + page.path, page.html); | ||
console.log(chalk.green('✔') + " Wrote file: " + chalk.yellow('.' + page.path)); | ||
fs.writeFileSync('./root' + page.path, page.html); | ||
console.log(chalk.green('✔') + " Wrote file: " + chalk.yellow('./root' + page.path)); | ||
} | ||
@@ -104,0 +104,0 @@ }; |
@@ -110,3 +110,3 @@ import * as fs from 'fs' | ||
const directory = getDirectory('.' + page.path) | ||
const directory = getDirectory('./root' + page.path) | ||
@@ -120,4 +120,4 @@ if (!fs.existsSync(directory)) { | ||
fs.writeFileSync('.' + page.path, page.html) | ||
console.log(`${ chalk.green('✔') } Wrote file: ${ chalk.yellow('.' + page.path) }`) | ||
fs.writeFileSync('./root' + page.path, page.html) | ||
console.log(`${ chalk.green('✔') } Wrote file: ${ chalk.yellow('./root' + page.path) }`) | ||
} | ||
@@ -124,0 +124,0 @@ } |
{ | ||
"name": "@iannisz/node-cms", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
7152