Skip to content
Snippets Groups Projects
Unverified Commit 2dfc5421 authored by RahulGautamSingh's avatar RahulGautamSingh Committed by GitHub
Browse files

chore: enabled json imports (#30223)

parent 4b502025
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
/** /**
* returns renovates package.json * returns renovates package.json
* @type {import('./types').RenovatePackageJson}
*/ */
const pkg = (() => require('../package.json'))(); const path = (() => require('path'))();
// need to use dynamic strings so that typescript does not include package.json in dist folder after compilation
const filePath = path.join(__dirname, '..', 'package.json');
const pkg = (() => require(filePath))();
/** /**
* return's re2 * return's re2
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
"extends": "./tsconfig", "extends": "./tsconfig",
"compilerOptions": { "compilerOptions": {
"declaration": true, "declaration": true,
"resolveJsonModule": false,
"sourceMap": true, "sourceMap": true,
"inlineSources": true, "inlineSources": true,
"importHelpers": true, "importHelpers": true,
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"sourceMap": true, "sourceMap": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"esModuleInterop": true, "esModuleInterop": true,
"resolveJsonModule": false, "resolveJsonModule": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noImplicitOverride": true, "noImplicitOverride": true,
"experimentalDecorators": true, "experimentalDecorators": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment