Skip to content

Commit

Permalink
feat: change tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Aug 29, 2024
1 parent 45cbebb commit b9b0721
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module.exports = {
extends: require.resolve('@diplodoc/lint/eslint-config'),
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
project: ['./tsconfig.json', './tsconfig.tests.json'],
},
};
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import {AttrsParser} from './attrs';
import {AttrsParser} from './lib/attrs';

export {AttrsParser};
File renamed without changes.
2 changes: 1 addition & 1 deletion src/__tests__/attrs.test.ts → tests/attrs.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AttrsParser} from '../attrs';
import {AttrsParser} from '../src';

describe('attrs parser tests', () => {
it('parses classes and ids', () => {
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"lib": ["ES2019", "DOM"],
"target": "es6",
"baseUrl": ".",
"rootDir": "src",
"rootDir": "src",
"outDir": "lib/",
"module": "CommonJS",
"paths": {
"src/*": ["src/*"],
"__tests__/*": ["__tests__/*"]
"tests/*": ["tests/*"]
}
},
"include": ["src"],
"exclude": ["node_modules", "src/playground.ts"]
"exclude": ["node_modules"]
}
8 changes: 8 additions & 0 deletions tsconfig.tests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"include": ["tests"],
"compilerOptions": {
"noEmit": true,
}

}

0 comments on commit b9b0721

Please sign in to comment.