@iannisz/node-cms
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -93,3 +93,3 @@ "use strict"; | ||
// Create directory, if needed | ||
var directory = getDirectory(page.path); | ||
var directory = getDirectory('.' + 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('.' + page.path, page.html); | ||
console.log(chalk.green('✔') + " Wrote file: " + chalk.yellow('.' + page.path)); | ||
} | ||
@@ -104,0 +104,0 @@ }; |
@@ -96,3 +96,3 @@ import * as fs from 'fs' | ||
// Store start time | ||
const start = Date.now() | ||
@@ -111,3 +111,3 @@ | ||
const directory = getDirectory(page.path) | ||
const directory = getDirectory('.' + page.path) | ||
@@ -121,4 +121,4 @@ if (!fs.existsSync(directory)) { | ||
fs.writeFileSync(page.path, page.html) | ||
console.log(`${ chalk.green('✔') } Wrote file: ${ chalk.yellow(page.path) }`) | ||
fs.writeFileSync('.' + page.path, page.html) | ||
console.log(`${ chalk.green('✔') } Wrote file: ${ chalk.yellow('.' + page.path) }`) | ||
} | ||
@@ -125,0 +125,0 @@ } |
{ | ||
"name": "@iannisz/node-cms", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"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
7121