@vira-ui/cli 0.3.1-alpha → 0.3.2-alpha
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/index.js +12 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -137,6 +137,7 @@ async function createProjectStructure(projectPath, template) {
|
|
|
137
137
|
dependencies: {
|
|
138
138
|
"@vira-ui/core": "^0.3.0-alpha",
|
|
139
139
|
"@vira-ui/ui": "^0.3.0-alpha",
|
|
140
|
+
"lucide-react": "^0.400.0",
|
|
140
141
|
},
|
|
141
142
|
devDependencies: {
|
|
142
143
|
"@vira-ui/babel-plugin": "^0.3.0-alpha",
|
|
@@ -158,7 +159,6 @@ async function createProjectStructure(projectPath, template) {
|
|
|
158
159
|
module: "ESNext",
|
|
159
160
|
lib: ["ES2020", "DOM", "DOM.Iterable"],
|
|
160
161
|
jsx: "react-jsx",
|
|
161
|
-
jsxImportSource: "@vira-ui/core",
|
|
162
162
|
moduleResolution: "bundler",
|
|
163
163
|
resolveJsonModule: true,
|
|
164
164
|
allowJs: true,
|
|
@@ -167,6 +167,10 @@ async function createProjectStructure(projectPath, template) {
|
|
|
167
167
|
esModuleInterop: true,
|
|
168
168
|
skipLibCheck: true,
|
|
169
169
|
forceConsistentCasingInFileNames: true,
|
|
170
|
+
paths: {
|
|
171
|
+
"@vira-ui/ui": ["./node_modules/@vira-ui/ui/src"],
|
|
172
|
+
"@vira-ui/core": ["./node_modules/@vira-ui/core/src"],
|
|
173
|
+
},
|
|
170
174
|
},
|
|
171
175
|
include: ["src"],
|
|
172
176
|
};
|
|
@@ -174,6 +178,7 @@ async function createProjectStructure(projectPath, template) {
|
|
|
174
178
|
// vite.config.ts
|
|
175
179
|
const viteConfig = `import { defineConfig } from 'vite';
|
|
176
180
|
import react from '@vitejs/plugin-react';
|
|
181
|
+
import path from 'path';
|
|
177
182
|
|
|
178
183
|
export default defineConfig({
|
|
179
184
|
plugins: [
|
|
@@ -184,6 +189,12 @@ export default defineConfig({
|
|
|
184
189
|
// },
|
|
185
190
|
}),
|
|
186
191
|
],
|
|
192
|
+
resolve: {
|
|
193
|
+
alias: {
|
|
194
|
+
'@vira-ui/ui': path.resolve(__dirname, 'node_modules/@vira-ui/ui/src/index.ts'),
|
|
195
|
+
'@vira-ui/core': path.resolve(__dirname, 'node_modules/@vira-ui/core/src/index.ts'),
|
|
196
|
+
},
|
|
197
|
+
},
|
|
187
198
|
});
|
|
188
199
|
`;
|
|
189
200
|
await fs.writeFile(path.join(projectPath, "vite.config.ts"), viteConfig);
|