@constela/start 1.2.9 → 1.2.10

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.
@@ -2290,14 +2290,18 @@ async function bundleCSS(options) {
2290
2290
  const processedCssInput = sourceDirectives + "\n" + cssContent;
2291
2291
  const postcss = (await import("postcss")).default;
2292
2292
  const tailwindPostcss = (await import("@tailwindcss/postcss")).default;
2293
+ const projectRoot = process.cwd();
2294
+ const isWithinProject = firstCssFile.startsWith(projectRoot);
2295
+ const baseDir = isWithinProject ? sourceDir : projectRoot;
2293
2296
  const result = await postcss([
2294
2297
  tailwindPostcss({
2295
- base: sourceDir,
2298
+ base: baseDir,
2296
2299
  optimize: options.minify ?? true
2297
2300
  })
2298
2301
  ]).process(processedCssInput, {
2299
- // Use __dirname for package resolution (tailwindcss is a peer dependency of this package)
2300
- from: join8(__dirname, "styles.css")
2302
+ // Use a path within project root for package resolution
2303
+ // This ensures tailwindcss can be resolved from node_modules
2304
+ from: isWithinProject ? firstCssFile : join8(projectRoot, "styles.css")
2301
2305
  });
2302
2306
  await esbuild.build({
2303
2307
  stdin: {
package/dist/cli/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createDevServer,
4
4
  loadConfig,
5
5
  resolveConfig
6
- } from "../chunk-APCF5VWN.js";
6
+ } from "../chunk-SC6WWHJ6.js";
7
7
  import "../chunk-PUTC5BCP.js";
8
8
 
9
9
  // src/cli/index.ts
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  transformCsv,
24
24
  transformMdx,
25
25
  transformYaml
26
- } from "./chunk-APCF5VWN.js";
26
+ } from "./chunk-SC6WWHJ6.js";
27
27
  import {
28
28
  generateHydrationScript,
29
29
  renderPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/start",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "Meta-framework for Constela applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -44,10 +44,10 @@
44
44
  "@tailwindcss/postcss": "^4.0.0",
45
45
  "tailwindcss": "^4.0.0",
46
46
  "@constela/compiler": "0.7.0",
47
+ "@constela/router": "8.0.0",
47
48
  "@constela/server": "3.0.1",
48
- "@constela/core": "0.7.0",
49
49
  "@constela/runtime": "0.10.1",
50
- "@constela/router": "8.0.0"
50
+ "@constela/core": "0.7.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/mdast": "^4.0.4",