@thelacanians/vue-native-cli 0.4.2 → 0.4.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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -60,9 +60,12 @@ export default defineConfig({
60
60
  strict: true,
61
61
  jsx: "preserve",
62
62
  lib: ["ES2020"],
63
- types: []
63
+ types: [],
64
+ paths: {
65
+ vue: ["./node_modules/@thelacanians/vue-native-runtime/dist/index.d.ts"]
66
+ }
64
67
  },
65
- include: ["app/**/*"]
68
+ include: ["app/**/*", "env.d.ts"]
66
69
  }, null, 2));
67
70
  await generateTemplateFiles(dir, name, template);
68
71
  const iosDir = join(dir, "ios");
@@ -357,7 +360,7 @@ export default defineConfig({
357
360
  `);
358
361
  await writeFile(join(dir, "env.d.ts"), `/// <reference types="vite/client" />
359
362
  declare module '*.vue' {
360
- import type { DefineComponent } from 'vue'
363
+ import type { DefineComponent } from '@thelacanians/vue-native-runtime'
361
364
  const component: DefineComponent<{}, {}, any>
362
365
  export default component
363
366
  }
@@ -410,7 +413,7 @@ async function generateTemplateFiles(dir, name, template) {
410
413
  }
411
414
  }
412
415
  async function generateBlankTemplate(dir, pagesDir) {
413
- await writeFile(join(dir, "app", "main.ts"), `import { createApp } from 'vue'
416
+ await writeFile(join(dir, "app", "main.ts"), `import { createApp } from '@thelacanians/vue-native-runtime'
414
417
  import { createRouter } from '@thelacanians/vue-native-navigation'
415
418
  import App from './App.vue'
416
419
  import Home from './pages/Home.vue'
@@ -485,7 +488,7 @@ const styles = createStyleSheet({
485
488
  `);
486
489
  }
487
490
  async function generateTabsTemplate(dir, pagesDir) {
488
- await writeFile(join(dir, "app", "main.ts"), `import { createApp } from 'vue'
491
+ await writeFile(join(dir, "app", "main.ts"), `import { createApp } from '@thelacanians/vue-native-runtime'
489
492
  import App from './App.vue'
490
493
 
491
494
  const app = createApp(App)
@@ -598,7 +601,7 @@ const styles = createStyleSheet({
598
601
  `);
599
602
  }
600
603
  async function generateDrawerTemplate(dir, pagesDir) {
601
- await writeFile(join(dir, "app", "main.ts"), `import { createApp } from 'vue'
604
+ await writeFile(join(dir, "app", "main.ts"), `import { createApp } from '@thelacanians/vue-native-runtime'
602
605
  import App from './App.vue'
603
606
 
604
607
  const app = createApp(App)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelacanians/vue-native-cli",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "CLI for creating and running Vue Native apps",
5
5
  "license": "MIT",
6
6
  "author": "Vue Native Contributors",