@usefidel/contracts 0.4.0 → 0.5.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/onboarding-config.d.ts +13 -0
- package/dist/onboarding-config.js +29 -0
- package/package.json +1 -1
|
@@ -63,3 +63,16 @@ export declare function nameFromUrl(url: string): string;
|
|
|
63
63
|
* output the user copies, so it is fixed, not incidental.
|
|
64
64
|
*/
|
|
65
65
|
export declare function buildDsConfigJson(existingRaw: Record<string, unknown> | null, dsSelections: DsSelection[]): string;
|
|
66
|
+
/**
|
|
67
|
+
* The GitHub Actions workflow `fidel init` writes to `.github/workflows/`.
|
|
68
|
+
*
|
|
69
|
+
* Here for the same reason as the builders above: the onboarding UI shows this
|
|
70
|
+
* text for a user to copy, and `fidel init` writes it. If the two disagree, a
|
|
71
|
+
* user commits a workflow that does not match the one we told them to use.
|
|
72
|
+
*
|
|
73
|
+
* A plain constant rather than a builder because init writes it identically on
|
|
74
|
+
* both branches — the Figma and design-system flows share one workflow.
|
|
75
|
+
*
|
|
76
|
+
* The trailing newline is intentional and asserted; the file ends with one.
|
|
77
|
+
*/
|
|
78
|
+
export declare const WORKFLOW_YAML = "name: Design Validation\non:\n pull_request:\n types: [opened, synchronize]\n\npermissions:\n contents: read\n pull-requests: write\n id-token: write\n\njobs:\n fidel:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: usefidel/fidel-action@v1\n";
|
|
@@ -82,3 +82,32 @@ export function buildDsConfigJson(existingRaw, dsSelections) {
|
|
|
82
82
|
out.designSystemChecks = merged;
|
|
83
83
|
return JSON.stringify(out, null, 2) + "\n";
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* The GitHub Actions workflow `fidel init` writes to `.github/workflows/`.
|
|
87
|
+
*
|
|
88
|
+
* Here for the same reason as the builders above: the onboarding UI shows this
|
|
89
|
+
* text for a user to copy, and `fidel init` writes it. If the two disagree, a
|
|
90
|
+
* user commits a workflow that does not match the one we told them to use.
|
|
91
|
+
*
|
|
92
|
+
* A plain constant rather than a builder because init writes it identically on
|
|
93
|
+
* both branches — the Figma and design-system flows share one workflow.
|
|
94
|
+
*
|
|
95
|
+
* The trailing newline is intentional and asserted; the file ends with one.
|
|
96
|
+
*/
|
|
97
|
+
export const WORKFLOW_YAML = `name: Design Validation
|
|
98
|
+
on:
|
|
99
|
+
pull_request:
|
|
100
|
+
types: [opened, synchronize]
|
|
101
|
+
|
|
102
|
+
permissions:
|
|
103
|
+
contents: read
|
|
104
|
+
pull-requests: write
|
|
105
|
+
id-token: write
|
|
106
|
+
|
|
107
|
+
jobs:
|
|
108
|
+
fidel:
|
|
109
|
+
runs-on: ubuntu-latest
|
|
110
|
+
steps:
|
|
111
|
+
- uses: actions/checkout@v4
|
|
112
|
+
- uses: usefidel/fidel-action@v1
|
|
113
|
+
`;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"The source of truth still lives in the monorepo at packages/contracts/."
|
|
8
8
|
],
|
|
9
9
|
"name": "@usefidel/contracts",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.5.0",
|
|
11
11
|
"description": "Shared, code-free contracts between Fidel surfaces. Run-error taxonomy, theme-intake wire types, and the canonical fidel.config.json builders.",
|
|
12
12
|
"license": "UNLICENSED",
|
|
13
13
|
"private": false,
|