sequoia-cli 0.5.3 → 0.5.5
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/index.js +11 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -102977,8 +102977,8 @@ function resolvePostPath(post, pathPrefix, pathTemplate) {
|
|
|
102977
102977
|
if (pathTemplate) {
|
|
102978
102978
|
return resolvePathTemplate(pathTemplate, post);
|
|
102979
102979
|
}
|
|
102980
|
-
const prefix = pathPrefix
|
|
102981
|
-
return `${prefix}/${post.slug}`;
|
|
102980
|
+
const prefix = pathPrefix ?? "/posts";
|
|
102981
|
+
return prefix ? `${prefix}/${post.slug}` : `/${post.slug}`;
|
|
102982
102982
|
}
|
|
102983
102983
|
async function getContentHash(content) {
|
|
102984
102984
|
const encoder = new TextEncoder;
|
|
@@ -104302,7 +104302,7 @@ var initCommand = import_cmd_ts3.command({
|
|
|
104302
104302
|
imagesDir: siteConfig.imagesDir || undefined,
|
|
104303
104303
|
publicDir: siteConfig.publicDir || "./public",
|
|
104304
104304
|
outputDir: siteConfig.outputDir || "./dist",
|
|
104305
|
-
pathPrefix: siteConfig.pathPrefix
|
|
104305
|
+
pathPrefix: siteConfig.pathPrefix ?? "/posts",
|
|
104306
104306
|
publicationUri,
|
|
104307
104307
|
pdsUrl,
|
|
104308
104308
|
frontmatter: frontmatterMapping,
|
|
@@ -104764,10 +104764,13 @@ Matching documents to local files:
|
|
|
104764
104764
|
} else {
|
|
104765
104765
|
contentHash = await getContentHash(localPost.rawContent);
|
|
104766
104766
|
}
|
|
104767
|
+
const existing = state.posts[relativeFilePath];
|
|
104767
104768
|
state.posts[relativeFilePath] = {
|
|
104768
104769
|
contentHash,
|
|
104769
104770
|
atUri: doc.uri,
|
|
104770
|
-
lastPublished: doc.value.publishedAt
|
|
104771
|
+
lastPublished: doc.value.publishedAt,
|
|
104772
|
+
slug: localPost.slug,
|
|
104773
|
+
...existing?.bskyPostRef ? { bskyPostRef: existing.bskyPostRef } : {}
|
|
104771
104774
|
};
|
|
104772
104775
|
} else {
|
|
104773
104776
|
unmatchedCount++;
|
|
@@ -105258,7 +105261,7 @@ async function updateConfigFlow(config, configPath) {
|
|
|
105258
105261
|
const configSummary = [
|
|
105259
105262
|
`Site URL: ${config.siteUrl}`,
|
|
105260
105263
|
`Content Dir: ${config.contentDir}`,
|
|
105261
|
-
`Path Prefix: ${config.pathPrefix
|
|
105264
|
+
`Path Prefix: ${config.pathPrefix ?? "/posts"}`,
|
|
105262
105265
|
`Publication URI: ${config.publicationUri}`,
|
|
105263
105266
|
config.imagesDir ? `Images Dir: ${config.imagesDir}` : null,
|
|
105264
105267
|
config.outputDir ? `Output Dir: ${config.outputDir}` : null,
|
|
@@ -105359,12 +105362,12 @@ async function editSiteSettings(config) {
|
|
|
105359
105362
|
}));
|
|
105360
105363
|
const pathPrefix = exitOnCancel(await Qt({
|
|
105361
105364
|
message: "URL path prefix for posts:",
|
|
105362
|
-
initialValue: config.pathPrefix
|
|
105365
|
+
initialValue: config.pathPrefix ?? "/posts"
|
|
105363
105366
|
}));
|
|
105364
105367
|
return {
|
|
105365
105368
|
...config,
|
|
105366
105369
|
siteUrl,
|
|
105367
|
-
pathPrefix
|
|
105370
|
+
pathPrefix
|
|
105368
105371
|
};
|
|
105369
105372
|
}
|
|
105370
105373
|
async function editDirectories(config) {
|
|
@@ -105684,7 +105687,7 @@ Publish evergreen content to the ATmosphere
|
|
|
105684
105687
|
|
|
105685
105688
|
> https://tangled.org/stevedylan.dev/sequoia
|
|
105686
105689
|
`,
|
|
105687
|
-
version: "0.5.
|
|
105690
|
+
version: "0.5.5",
|
|
105688
105691
|
cmds: {
|
|
105689
105692
|
add: addCommand,
|
|
105690
105693
|
auth: authCommand,
|