use import.meta.dirname
This commit is contained in:
parent
fde43f0e32
commit
550965f9f3
1 changed files with 2 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
||||||
import {readFileSync} from "fs";
|
import {readFileSync} from "fs";
|
||||||
export const dotproto = readFileSync("pianoverse.proto").toString()
|
import {join} from "path"
|
||||||
|
export const dotproto = readFileSync(join(import.meta.dirname, "pianoverse.proto")).toString()
|
||||||
|
|
Loading…
Reference in a new issue