Comparing version 0.0.11 to 0.0.12
@@ -10,3 +10,3 @@ # Changelog | ||
## [v0.0.11](https://github.com/sw-yx/ssg/compare/v0.0.3...v0.0.11) - 2019-09-14 | ||
## [v0.0.12](https://github.com/sw-yx/ssg/compare/v0.0.3...v0.0.12) - 2019-09-14 | ||
@@ -13,0 +13,0 @@ ### Commits |
@@ -27,7 +27,7 @@ "use strict"; | ||
const data = yield ssgConfig.getInitialData(); | ||
const dotFolderPath = path_1.default.join(path_1.default.resolve(ssgConfig.ssgDotFolder), '.ssg'); | ||
const dotFolderPath = path_1.default.resolve(ssgConfig.ssgDotFolder); | ||
const dotFolderDataPath = path_1.default.join(dotFolderPath, 'data.json'); | ||
if (!fs_1.default.existsSync(dotFolderPath)) | ||
fs_1.default.mkdirSync(dotFolderPath); | ||
fs_1.default.writeFileSync(dotFolderDataPath, data); | ||
fs_1.default.writeFileSync(dotFolderDataPath, JSON.stringify(data)); | ||
} | ||
@@ -34,0 +34,0 @@ }); |
{ | ||
"name": "ssg", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
26389