@thelacanians/vue-native-cli 0.4.1 → 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.
package/dist/cli.d.ts CHANGED
@@ -1 +1,2 @@
1
- #!/usr/bin/env node
1
+
2
+ export { }
package/dist/cli.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
2
 
4
3
  // src/cli.ts
5
4
  import { program } from "commander";
@@ -61,9 +60,12 @@ export default defineConfig({
61
60
  strict: true,
62
61
  jsx: "preserve",
63
62
  lib: ["ES2020"],
64
- types: []
63
+ types: [],
64
+ paths: {
65
+ vue: ["./node_modules/@thelacanians/vue-native-runtime/dist/index.d.ts"]
66
+ }
65
67
  },
66
- include: ["app/**/*"]
68
+ include: ["app/**/*", "env.d.ts"]
67
69
  }, null, 2));
68
70
  await generateTemplateFiles(dir, name, template);
69
71
  const iosDir = join(dir, "ios");
@@ -358,7 +360,7 @@ export default defineConfig({
358
360
  `);
359
361
  await writeFile(join(dir, "env.d.ts"), `/// <reference types="vite/client" />
360
362
  declare module '*.vue' {
361
- import type { DefineComponent } from 'vue'
363
+ import type { DefineComponent } from '@thelacanians/vue-native-runtime'
362
364
  const component: DefineComponent<{}, {}, any>
363
365
  export default component
364
366
  }
@@ -411,7 +413,7 @@ async function generateTemplateFiles(dir, name, template) {
411
413
  }
412
414
  }
413
415
  async function generateBlankTemplate(dir, pagesDir) {
414
- 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'
415
417
  import { createRouter } from '@thelacanians/vue-native-navigation'
416
418
  import App from './App.vue'
417
419
  import Home from './pages/Home.vue'
@@ -486,7 +488,7 @@ const styles = createStyleSheet({
486
488
  `);
487
489
  }
488
490
  async function generateTabsTemplate(dir, pagesDir) {
489
- 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'
490
492
  import App from './App.vue'
491
493
 
492
494
  const app = createApp(App)
@@ -599,7 +601,7 @@ const styles = createStyleSheet({
599
601
  `);
600
602
  }
601
603
  async function generateDrawerTemplate(dir, pagesDir) {
602
- 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'
603
605
  import App from './App.vue'
604
606
 
605
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.1",
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",