fix: sequoia update
b8d44224
Switches from using `generateConfigTemplate` to using basic JSON update
1 file(s) · +2 −19
Switches from using `generateConfigTemplate` to using basic JSON update
| 10 | 10 | spinner, |
|
| 11 | 11 | log, |
|
| 12 | 12 | } from "@clack/prompts"; |
|
| 13 | - | import { findConfig, loadConfig, generateConfigTemplate } from "../lib/config"; |
|
| 13 | + | import { findConfig, loadConfig } from "../lib/config"; |
|
| 14 | 14 | import { |
|
| 15 | 15 | loadCredentials, |
|
| 16 | 16 | listAllCredentials, |
|
| 147 | 147 | ); |
|
| 148 | 148 | ||
| 149 | 149 | if (shouldSave) { |
|
| 150 | - | const configContent = generateConfigTemplate({ |
|
| 151 | - | siteUrl: configUpdated.siteUrl, |
|
| 152 | - | contentDir: configUpdated.contentDir, |
|
| 153 | - | imagesDir: configUpdated.imagesDir, |
|
| 154 | - | publicDir: configUpdated.publicDir, |
|
| 155 | - | outputDir: configUpdated.outputDir, |
|
| 156 | - | pathPrefix: configUpdated.pathPrefix, |
|
| 157 | - | publicationUri: configUpdated.publicationUri, |
|
| 158 | - | pdsUrl: configUpdated.pdsUrl, |
|
| 159 | - | frontmatter: configUpdated.frontmatter, |
|
| 160 | - | ignore: configUpdated.ignore, |
|
| 161 | - | removeIndexFromSlug: configUpdated.removeIndexFromSlug, |
|
| 162 | - | stripDatePrefix: configUpdated.stripDatePrefix, |
|
| 163 | - | pathTemplate: configUpdated.pathTemplate, |
|
| 164 | - | textContentField: configUpdated.textContentField, |
|
| 165 | - | publishContent: configUpdated.publishContent, |
|
| 166 | - | bluesky: configUpdated.bluesky, |
|
| 167 | - | }); |
|
| 150 | + | const configContent = JSON.stringify(configUpdated, null, 2); |
|
| 168 | 151 | ||
| 169 | 152 | await fs.writeFile(configPath, configContent); |
|
| 170 | 153 | log.success("Configuration saved!"); |
|