Combine all sources into a sub-directory

This commit is contained in:
daz 2024-01-25 11:18:18 -07:00
parent e1ada08a9a
commit 5e522253a6
No known key found for this signature in database
63 changed files with 3 additions and 3 deletions

View file

@ -8,8 +8,8 @@
"format": "prettier --write **/*.ts", "format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts", "format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts", "lint": "eslint src/**/*.ts",
"compile-main": "ncc build src/main.ts --out dist/main --source-map --no-source-map-register", "compile-main": "ncc build src/main.ts --out ../dist/main --source-map --no-source-map-register",
"compile-post": "ncc build src/post.ts --out dist/post --source-map --no-source-map-register", "compile-post": "ncc build src/post.ts --out ../dist/post --source-map --no-source-map-register",
"compile": "npm-run-all --parallel compile-*", "compile": "npm-run-all --parallel compile-*",
"check": "npm-run-all --parallel format lint", "check": "npm-run-all --parallel format lint",
"test": "jest", "test": "jest",

View file

@ -235,7 +235,7 @@ export class GradleStateCache {
private readResourceFileAsString(...paths: string[]): string { private readResourceFileAsString(...paths: string[]): string {
// Resolving relative to __dirname will allow node to find the resource at runtime // Resolving relative to __dirname will allow node to find the resource at runtime
const absolutePath = path.resolve(__dirname, '..', '..', 'src', 'resources', ...paths) const absolutePath = path.resolve(__dirname, '..', '..', 'sources', 'src', 'resources', ...paths)
return fs.readFileSync(absolutePath, 'utf8') return fs.readFileSync(absolutePath, 'utf8')
} }