Move source files into src

This commit is contained in:
RAIT-09 2025-09-24 17:42:57 +09:00
parent 86e55d11b1
commit 6b2bcb1ae6
20 changed files with 6 additions and 6 deletions

View file

@ -2,20 +2,19 @@ import esbuild from "esbuild";
import process from "process";
import builtins from "builtin-modules";
const banner =
`/*
const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
`;
const prod = (process.argv[2] === "production");
const prod = process.argv[2] === "production";
const context = await esbuild.context({
banner: {
js: banner,
},
entryPoints: ["main.ts"],
entryPoints: ["src/main.ts"],
bundle: true,
external: [
"obsidian",
@ -31,7 +30,8 @@ const context = await esbuild.context({
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins],
...builtins,
],
format: "cjs",
target: "es2018",
logLevel: "info",

View file

@ -14,5 +14,5 @@
"lib": ["DOM", "ES5", "ES6", "ES7"],
"jsx": "react-jsx"
},
"include": ["**/*.ts"]
"include": ["src/**/*.ts", "src/**/*.tsx"]
}