Skip to content

Commit

Permalink
fix: adds missing JSON files to build
Browse files Browse the repository at this point in the history
Fixes #253
  • Loading branch information
LuqueDaniel committed Feb 15, 2023
1 parent 1d440a7 commit ebc9cd2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
5 changes: 2 additions & 3 deletions src/navigationdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { cleanUpPath, extractFilenameWithoutExtension, getFileWithPath, getNavig
import * as fs from "fs";
import { Displayable } from "./displayable";
import { Character } from "./character";
import data from "./renpy.json";
import kwData from "./renpyauto.json";

const filterCharacter = "\u2588";

Expand All @@ -27,10 +29,7 @@ export class NavigationData {
static async init(extensionPath: string) {
console.log(`NavigationData init`);

const data = require(`${extensionPath}/src/renpy.json`);
NavigationData.renpyFunctions = data;

const kwData = require(`${extensionPath}/src/renpyauto.json`);
NavigationData.autoCompleteKeywords = kwData;

NavigationData.renpyAutoComplete = [];
Expand Down
39 changes: 18 additions & 21 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"outDir": "out",
"lib": [
"es6"
],
"sourceMap": true,
"rootDir": "src",
/* Strict Type-Checking Option */
"strict": true, /* enable all strict type-checking options */
/* Additional Checks */
"noUnusedLocals": true /* Report errors on unused locals. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
},
"exclude": [
"node_modules",
".vscode-test"
]
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"outDir": "out",
"lib": ["es6"],
"sourceMap": true,
"rootDir": "src",
/* Strict Type-Checking Option */
"strict": true /* enable all strict type-checking options */,
/* Additional Checks */
"noUnusedLocals": true /* Report errors on unused locals. */,
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"esModuleInterop": true,
"resolveJsonModule": true
},
"exclude": ["node_modules", ".vscode-test"]
}

0 comments on commit ebc9cd2

Please sign in to comment.