Skip to content

Commit

Permalink
Including sourceMap and inlineSources in tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert committed May 10, 2021
1 parent d602dd8 commit f1f0bb4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ module.exports = {
},
rules: {
'node/shebang': 'off',
'node/no-missing-import': 'off',
'node/no-unsupported-features/es-syntax': [
'error',
{
ignores: ['modules'],
},
],
},
overrides: [
{
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ let FIND_UP_CACHE = new Cache();
let pnp: any;

try {
pnp = require('pnpapi'); // eslint-ignore node/no-missing-require
// eslint-disable-next-line node/no-missing-require
pnp = require('pnpapi');
} catch (error) {
// not in Yarn PnP; not a problem
}
Expand Down Expand Up @@ -133,6 +134,7 @@ resolvePackagePath._resetCache = function () {
CACHE = new CacheGroup();
FIND_UP_CACHE = new Cache();
};
// eslint-disable-next-line no-redeclare
module resolvePackagePath {
export let _CACHE: CacheGroup;
export let _FIND_UP_CACHE = FIND_UP_CACHE;
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"moduleResolution": "node",
"module": "commonjs",
"esModuleInterop": true,
"sourceMap": true,
"inlineSources": true,
"target": "es2018",
"baseUrl": ".",
"outDir": "lib",
Expand Down

0 comments on commit f1f0bb4

Please sign in to comment.