@dfosco/storyboard-react 4.0.0-beta.2 → 4.0.0-beta.3
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/package.json +3 -3
- package/src/vite/data-plugin.js +3 -2
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfosco/storyboard-react",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@dfosco/storyboard-core": "4.0.0-beta.
|
|
7
|
-
"@dfosco/tiny-canvas": "4.0.0-beta.
|
|
6
|
+
"@dfosco/storyboard-core": "4.0.0-beta.3",
|
|
7
|
+
"@dfosco/tiny-canvas": "4.0.0-beta.3",
|
|
8
8
|
"@neodrag/react": "^2.3.1",
|
|
9
9
|
"glob": "^11.0.0",
|
|
10
10
|
"jsonc-parser": "^3.3.1"
|
package/src/vite/data-plugin.js
CHANGED
|
@@ -160,8 +160,9 @@ function getLastModified(root, dirPath) {
|
|
|
160
160
|
*/
|
|
161
161
|
function buildIndex(root) {
|
|
162
162
|
const ignore = ['node_modules/**', 'dist/**', '.git/**']
|
|
163
|
-
|
|
164
|
-
const
|
|
163
|
+
// Scope to src/ — all data files live there (avoids walking .worktrees/, public/, etc.)
|
|
164
|
+
const files = globSync(`src/${GLOB_PATTERN}`, { cwd: root, ignore, absolute: false })
|
|
165
|
+
const canvasFiles = globSync(`src/${CANVAS_GLOB_PATTERN}`, { cwd: root, ignore, absolute: false })
|
|
165
166
|
|
|
166
167
|
// Detect nested .folder/ directories (not supported)
|
|
167
168
|
// Scan directories directly since empty nested folders have no data files
|