Skip to content

Commit

Permalink
refactor!: expect rootDir to be set to root directory
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `rootDir` is now expected to be set to the root directory of the project.
Run `plugin-kit verify-package` to get hints about how to apply required changes.
  • Loading branch information
mariuslundgard committed Jan 2, 2023
1 parent 9218bfc commit 41cd4ef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/inject/template-tsconfig.json
@@ -1,7 +1,7 @@
{
"include": ["./src"],
"compilerOptions": {
"rootDir": "./src",
"rootDir": ".",
"outDir": "./lib",
"jsx": "preserve",
"moduleResolution": "node",
Expand Down
2 changes: 1 addition & 1 deletion src/actions/verify/validations.ts
Expand Up @@ -31,7 +31,7 @@ const expectedCompilerOptions = {
downlevelIteration: true,
declaration: true,
allowSyntheticDefaultImports: true,
rootDir: 'src',
rootDir: '.',
outDir: 'lib',
}

Expand Down
2 changes: 1 addition & 1 deletion tap-snapshots/test/verify-package.test.ts.test.cjs
Expand Up @@ -140,7 +140,7 @@ Expected to find these values:
"downlevelIteration": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"rootDir": "src",
"rootDir": ".",
"outDir": "lib",
Please update your tsconfig.json accordingly.
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/inject/valid/tsconfig.json
Expand Up @@ -18,7 +18,7 @@
"skipLibCheck": true,
"isolatedModules": true,
"checkJs": false,
"rootDir": "src"
"rootDir": "."
},
"include": ["src/**/*"]
}
2 changes: 1 addition & 1 deletion test/fixtures/verify-package/valid/tsconfig.json
Expand Up @@ -18,7 +18,7 @@
"skipLibCheck": true,
"isolatedModules": true,
"checkJs": false,
"rootDir": "src"
"rootDir": "."
},
"include": ["src/**/*"]
}

0 comments on commit 41cd4ef

Please sign in to comment.