Skip to content

Commit

Permalink
update reference
Browse files Browse the repository at this point in the history
Fix wrong code
  • Loading branch information
William Sena committed May 3, 2023
1 parent 8d41c6d commit df91f81
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>>;
declare const _default: import("#app").Plugin<Record<string, unknown>>;
export default _default;
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { defineNuxtPlugin } from '#app';
import VuePhaserPlugin from './vue.index';
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VuePhaserPlugin);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"test": "jest",
"ci": "npm run build && npm run test && np, run lint && npm run check",
"ci": "npm run build && npm run test && npm run lint && npm run check",
"build": "npm run build:clean && npm run build:tsc && npm run build:static",
"build:clean": "rimraf ./dist ",
"build:tsc": "tsc",
Expand Down
8 changes: 2 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { App } from 'vue'
import { defineNuxtPlugin } from '#app'
import VuePhaserPlugin from './vue.index'

interface NuxtApp {
vueApp: App
}

export default defineNuxtPlugin((nuxtApp: NuxtApp) => {
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VuePhaserPlugin)
})
16 changes: 13 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
"types": ["@types/jest", "@types/node", "phaser"],
"allowJs": true
"types": ["jest", "node", "phaser"],
"allowJs": true,
"baseUrl": "./",
"paths": {
"#app": ["node_modules/nuxt/dist/app"],
"#app/*": ["node_modules/nuxt/dist/app/*"]
}
},
"include": ["src/**/*.ts", "types/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"include": [
"src/**/*.ts",
"types/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue"
],
"exclude": ["**/node_modules"]
}

0 comments on commit df91f81

Please sign in to comment.