Move global type declarations to types dir

This commit is contained in:
Dannon Baker
2022-12-05 08:59:41 -05:00
parent b8fa41a285
commit f576258320
5 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ Vue.use(PiniaVuePlugin);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
addInitialization((Galaxy) => {
addInitialization((Galaxy: any) => {
console.log("App setup");
const router = getRouter(Galaxy);
new Vue({
+7 -5
View File
@@ -30,10 +30,12 @@
"baseUrl": "./src", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
"types": [
// "webpack-env"
], /* Specify type package names to be included without being referenced in a source file. */
"typeRoots": [
"./types"
], /* Specify multiple folders that act like `./node_modules/@types`. */
// "types": [
// // "webpack-env"
// ], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "resolveJsonModule": true, /* Enable importing .json files */
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
@@ -101,7 +103,7 @@
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": [
"shim-vue.d.ts",
"types/*.d.ts",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
View File
+5 -5
View File
@@ -90,17 +90,17 @@ module.exports = (env = {}, argv = {}) => {
test: /\.vue$/,
loader: "vue-loader",
},
{
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto",
},
{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: "ts-loader",
options: { appendTsSuffixTo: [/\.vue$/] },
},
{
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto",
},
{
test: `${libsBase}/jquery.custom.js`,
loader: "expose-loader",