create-slotkit-app 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -56,7 +56,21 @@ function createSlotKitFiles(projectDir) {
56
56
  // Create App.tsx (replaces Vite's default)
57
57
  const appTsx = `import React, { useEffect, useState } from 'react'
58
58
  import { AppLayout } from './app/AppLayout'
59
- import { pluginRegistry, pluginLoader } from '@slotkitjs/core'
59
+ import { pluginRegistry, pluginLoader, setPluginImportFunctions } from '@slotkitjs/core'
60
+
61
+ // Import generated plugin import mappings
62
+ // This file is generated by 'slotkit generate-imports'
63
+ import * as pluginImports from './core/plugin/loader/plugin-imports.generated'
64
+
65
+ /**
66
+ * Initialize plugin import mappings
67
+ */
68
+ if (pluginImports.getPluginImport && pluginImports.getAvailablePluginIds) {
69
+ setPluginImportFunctions({
70
+ getPluginImport: pluginImports.getPluginImport,
71
+ getAvailablePluginIds: pluginImports.getAvailablePluginIds
72
+ })
73
+ }
60
74
 
61
75
  /**
62
76
  * Load all plugins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-slotkit-app",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Create a new SlotKit application",
6
6
  "bin": {