@aspects-ai/workspace-cli 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command as Command8 } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@aspects-ai/workspace-cli",
9
- version: "0.1.14",
9
+ version: "0.1.15",
10
10
  private: false,
11
11
  description: "Lightweight CLI for installing libraries into workspaces",
12
12
  type: "module",
@@ -520,6 +520,20 @@ async function createRemotionEntry(compositionsDir, outputPath, animateCorePath)
520
520
  const compositionsObject = imports.map(({ compositionDir, varName, defName }) => {
521
521
  return ` '${compositionDir}': { component: ${varName}, compositionDefinition: ${defName} },`;
522
522
  }).join("\n");
523
+ const stylesheetLoader = `// Load stylesheet - try compiled.css first, fall back to Tailwind CDN
524
+ (async () => {
525
+ try {
526
+ await import('./styles/compiled.css');
527
+ } catch (error) {
528
+ // If compiled.css doesn't exist, inject Tailwind CDN as fallback
529
+ console.error("Failed to load compiled styles");
530
+ if (typeof document !== 'undefined') {
531
+ const script = document.createElement('script');
532
+ script.src = 'https://cdn.tailwindcss.com';
533
+ document.head.appendChild(script);
534
+ }
535
+ }
536
+ })();`;
523
537
  const content = `/**
524
538
  * Auto-generated Remotion SSR Entry Point
525
539
  *
@@ -536,6 +550,8 @@ async function createRemotionEntry(compositionsDir, outputPath, animateCorePath)
536
550
  * npx @aspects-ai/workspace-cli create-remotion-entry
537
551
  */
538
552
 
553
+ ${stylesheetLoader}
554
+
539
555
  import { registerRoot } from 'remotion';
540
556
  import { createRemotionRoot } from '${animateCorePath}/remotion';
541
557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspects-ai/workspace-cli",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "private": false,
5
5
  "description": "Lightweight CLI for installing libraries into workspaces",
6
6
  "type": "module",