@diagonal-hq/cli 0.42.23 → 0.43.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/README.md CHANGED
@@ -1192,7 +1192,7 @@ Use `background: url(asset:hero)` in a CSS file. The hosted build replaces it wi
1192
1192
 
1193
1193
  The check follows CSS imports from pages, layouts, and components. An unknown `asset:` key fails with its file, line, and column. `asset:` in `@import` fails. A `url(asset:` value in a TypeScript or TSX module also fails. Move that value to a CSS file.
1194
1194
 
1195
- The check refuses binary imports from workspace modules, including images, fonts, SVG, video, audio, and PDF files. Binary files in `pages/` also fail when no module imports them. Upload an image as an Application Asset and use `url(asset:<key>)` in CSS. For icons, use `Sdk.Icon` or an SVG written as a TSX component. SVG and font uploads are not supported yet; use an https: URL for those files.
1195
+ The check refuses binary imports from workspace modules, including images, fonts, SVG, video, audio, and PDF files. Binary files fail in every folder, also when no module imports them. The check also refuses a file that a workspace cannot hold. Next to the definition files, a workspace holds `.ts`, `.tsx`, `.js`, and `.jsx` modules, CSS and Markdown files, the `.liquid` files of `notifications/` and `email-layouts/`, and `package.json`, `package-lock.json`, `npm-shrinkwrap.json`, `tsconfig.json`, and `LICENSE` at the root. Upload an image as an Application Asset and use `url(asset:<key>)` in CSS. For icons, use `Sdk.Icon` or an SVG written as a TSX component. SVG and font uploads are not supported yet; use an https: URL for those files.
1196
1196
 
1197
1197
  A CSS `url()` can name an Application Asset as `url(asset:<key>)`, a data URL, an HTTP or HTTPS URL, or a fragment. Relative, root-relative, and protocol-relative file URLs fail. CSS `@import` and `composes` cannot name binary files or Application Assets. Import a CSS file instead.
1198
1198
 
package/dist/cli.mjs CHANGED
@@ -11752,6 +11752,7 @@ function workspaceBuildRequest(root, plan, { assetCatalog = null, writeSource =
11752
11752
  planDiagnostics: plan.diagnostics.filter((item) => item.path !== CONFIG_PATH),
11753
11753
  planDependencies: [...plan.dependencies],
11754
11754
  planFiles: [...plan.files.keys()],
11755
+ planInstalledFiles: [...plan.files].filter(([, file]) => file.source.startsWith("node_modules/")).map(([path]) => path),
11755
11756
  planBindings: Object.fromEntries(plan.bindings ?? []),
11756
11757
  planOwners: Object.fromEntries([...plan.files].map(([path, file]) => [path, file.name])),
11757
11758
  planPackages: plan.packages.map(({ name, version }) => ({ name, version })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.42.23",
3
+ "version": "0.43.0",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -51,8 +51,8 @@
51
51
  "bun": "1.4.4"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-hcddf14d5c9cf",
55
- "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-hcddf14d5c9cf",
56
- "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-hcddf14d5c9cf"
54
+ "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-h2f7a0befd91f",
55
+ "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-h2f7a0befd91f",
56
+ "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-h2f7a0befd91f"
57
57
  }
58
58
  }