Here’s a quick tip: add resolveJsonModule: true
to your tsconfig.json
and then you can just:
import { version } from "./package.json";
Here’s a quick tip: add resolveJsonModule: true
to your tsconfig.json
and then you can just:
import { version } from "./package.json";