gbs-add-block 0.0.53-beta → 0.0.54
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 +3 -2
- package/index.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# GBS Building Blocks 2.0 (v0.0.
|
|
1
|
+
# GBS Building Blocks 2.0 (v0.0.54)
|
|
2
2
|
|
|
3
3
|
Latest and upgraded version of GBS building blocks with headless UI and removed dependencies.
|
|
4
4
|
|
|
@@ -6,9 +6,10 @@ Latest and upgraded version of GBS building blocks with headless UI and removed
|
|
|
6
6
|
|
|
7
7
|
For detailed documentation on usage and props, Please visit: [Building Block Documentation v2.0](https://blackmax-designs.gitbook.io/building-block-v2.0)
|
|
8
8
|
|
|
9
|
-
## What's New 🎉 (Ver 0.0.
|
|
9
|
+
## What's New 🎉 (Ver 0.0.54)
|
|
10
10
|
|
|
11
11
|
- Updated for more general installation methods
|
|
12
|
+
- Fixed bug in Framework detection for more accuracy
|
|
12
13
|
|
|
13
14
|
## Authors
|
|
14
15
|
|
package/index.js
CHANGED
|
@@ -115,7 +115,10 @@ const installComponentWithDependencies = async (component, destPath) => {
|
|
|
115
115
|
|
|
116
116
|
const detectFramework = () => {
|
|
117
117
|
// Check for Next.js
|
|
118
|
-
if (
|
|
118
|
+
if (
|
|
119
|
+
fs.existsSync(path.join(process.cwd(), "next.config.ts")) ||
|
|
120
|
+
fs.existsSync(path.join(process.cwd(), "next.config.js"))
|
|
121
|
+
) {
|
|
119
122
|
return "next";
|
|
120
123
|
}
|
|
121
124
|
// Check for Vite
|