@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:
|
|
2298
|
+
base: baseDir,
|
|
2296
2299
|
optimize: options.minify ?? true
|
|
2297
2300
|
})
|
|
2298
2301
|
]).process(processedCssInput, {
|
|
2299
|
-
// Use
|
|
2300
|
-
from
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constela/start",
|
|
3
|
-
"version": "1.2.
|
|
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/
|
|
50
|
+
"@constela/core": "0.7.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/mdast": "^4.0.4",
|