Skip to content

Commit 7799fc2

Browse files
committed
format repos with multiline strings
1 parent 65d754c commit 7799fc2

5 files changed

Lines changed: 4124 additions & 12 deletions

File tree

.changeset/three-pumpkins-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ryanatkn/fuz_gitops": patch
3+
---
4+
5+
format repos with multiline strings

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
},
4040
"devDependencies": {
4141
"@changesets/changelog-git": "^0.2.0",
42-
"@ryanatkn/belt": "^0.24.7",
43-
"@ryanatkn/eslint-config": "^0.4.1",
42+
"@ryanatkn/belt": "^0.24.9",
43+
"@ryanatkn/eslint-config": "^0.4.2",
4444
"@ryanatkn/fuz": "^0.110.4",
4545
"@ryanatkn/gro": "^0.130.1",
4646
"@ryanatkn/moss": "^0.8.0",

src/lib/gitops.task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const task: Task<Args> = {
8181
// generated by ${basename(import.meta.filename)}
8282
import type {Deployment} from '${specifier}';
8383
84-
export const deployments: Deployment[] = ${embed_json(fetched_deployments)}
84+
export const deployments: Deployment[] = ${embed_json(fetched_deployments, (s) => JSON.stringify(s, null, '\t'))};
8585
`;
8686
// TODO think about possibly using the `gen` functionality in this task, not sure what the API design could look like
8787
const formatted = await format_file(contents, {filepath: outfile});

src/routes/repos.ts

Lines changed: 4108 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)