mirror of
https://github.com/gradle/actions
synced 2024-11-23 18:02:13 +00:00
Combine all sources into a sub-directory
This commit is contained in:
parent
e1ada08a9a
commit
5e522253a6
63 changed files with 3 additions and 3 deletions
0
package-lock.json → sources/package-lock.json
generated
0
package-lock.json → sources/package-lock.json
generated
|
@ -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",
|
|
@ -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')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue