@sleekcms/sync 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/setup-site.js +2 -2
- package/package.json +1 -1
package/dist/setup-site.js
CHANGED
|
@@ -87,7 +87,7 @@ function resolveViewsDir(basePath, site) {
|
|
|
87
87
|
const slug = `${site.name.substr(0, 20)} ${site.id}`
|
|
88
88
|
.replace(/[\s_]+/g, "-")
|
|
89
89
|
.toLowerCase();
|
|
90
|
-
const base = basePath || path_1.default.join(os_1.default.homedir(), "
|
|
90
|
+
const base = basePath || path_1.default.join(os_1.default.homedir(), "SleekCMS");
|
|
91
91
|
return path_1.default.resolve(base, slug);
|
|
92
92
|
}
|
|
93
93
|
async function syncSite(opts) {
|
|
@@ -243,7 +243,7 @@ if (require.main === module) {
|
|
|
243
243
|
const opts = commander_1.program.opts();
|
|
244
244
|
syncSite({
|
|
245
245
|
token: opts.token,
|
|
246
|
-
path: opts.dir || path_1.default.join(os_1.default.homedir(), "
|
|
246
|
+
path: opts.dir || path_1.default.join(os_1.default.homedir(), "SleekCMS"),
|
|
247
247
|
env: opts.env,
|
|
248
248
|
})
|
|
249
249
|
.then(({ viewsDir, site, isFirstRun, pulled }) => {
|