@nodii/dev 0.6.52 → 0.6.53
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/core.js +1 -1
- package/dist/figma.js +5 -2
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
4
4
|
import { homedir, platform } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
7
|
-
export const VERSION = "0.6.
|
|
7
|
+
export const VERSION = "0.6.53";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
package/dist/figma.js
CHANGED
|
@@ -149,8 +149,11 @@ const CONTEXT_REFUSALS = {
|
|
|
149
149
|
CHANGE_SET_MIXED_COMPONENTS: (message, details) =>
|
|
150
150
|
[
|
|
151
151
|
message,
|
|
152
|
-
...(details?.items ?? []).
|
|
153
|
-
|
|
152
|
+
...(details?.items ?? []).flatMap((i) => [
|
|
153
|
+
...(i.outside?.length ? [` item ${i.figmaNodeId}: outside it ${i.outside.join(", ")}`] : []),
|
|
154
|
+
...(i.componentSets?.length ? [` item ${i.figmaNodeId}: mixes component sets ${i.componentSets.map((s) => s.name ?? s.id).join(", ")}`] : []),
|
|
155
|
+
]),
|
|
156
|
+
"Each variant must be its item's node or a direct child of it at the submitted version, all from one component set (DEC-0327): split unrelated components into separate items, then submit again.",
|
|
154
157
|
].join("\n"),
|
|
155
158
|
FIGMA_UNAVAILABLE: (message, details) =>
|
|
156
159
|
[
|