@nextsparkjs/core 0.1.0-beta.90 → 0.1.0-beta.92
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/styles/classes.json +1 -1
- package/package.json +2 -2
- package/scripts/postinstall.mjs +16 -5
package/dist/styles/classes.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextsparkjs/core",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.92",
|
|
4
4
|
"description": "NextSpark - The complete SaaS framework for Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NextSpark <hello@nextspark.dev>",
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"tailwind-merge": "^3.3.1",
|
|
412
412
|
"uuid": "^13.0.0",
|
|
413
413
|
"zod": "^4.1.5",
|
|
414
|
-
"@nextsparkjs/testing": "0.1.0-beta.
|
|
414
|
+
"@nextsparkjs/testing": "0.1.0-beta.92"
|
|
415
415
|
},
|
|
416
416
|
"scripts": {
|
|
417
417
|
"postinstall": "node scripts/postinstall.mjs || true",
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -66,13 +66,24 @@ function validateProjectRoot(projectRoot) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Detect if we're in
|
|
69
|
+
* Detect if we're in the NextSpark development monorepo.
|
|
70
|
+
* Consumer projects may also have pnpm-workspace.yaml (for themes/plugins),
|
|
71
|
+
* so we check for packages/core/ which only exists in the dev monorepo.
|
|
72
|
+
*/
|
|
73
|
+
function isDevMonorepo(projectRoot) {
|
|
74
|
+
const isMonorepo = existsSync(join(projectRoot, 'packages', 'core', 'package.json'));
|
|
75
|
+
if (isMonorepo) {
|
|
76
|
+
debug('Skipping: NextSpark development monorepo detected');
|
|
77
|
+
}
|
|
78
|
+
return isMonorepo;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Detect if we're in a NextSpark consumer project
|
|
70
83
|
*/
|
|
71
84
|
function isNextSparkProject(projectRoot) {
|
|
72
|
-
// If we're in the monorepo, skip
|
|
73
|
-
|
|
74
|
-
if (existsSync(pnpmWorkspace)) {
|
|
75
|
-
debug('Skipping: monorepo detected (pnpm-workspace.yaml exists)');
|
|
85
|
+
// If we're in the dev monorepo, skip
|
|
86
|
+
if (isDevMonorepo(projectRoot)) {
|
|
76
87
|
return false;
|
|
77
88
|
}
|
|
78
89
|
|