Skip to content

Commit

Permalink
chore(misc): fix issues after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Nov 13, 2024
1 parent 63731f4 commit ca32248
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 13 deletions.
2 changes: 2 additions & 0 deletions packages/expo/src/generators/library/library.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ describe('lib', () => {
"compilerOptions": {
"outDir": "../dist/out-tsc",
"module": "commonjs",
"moduleResolution": "node10",
"jsx": "react-jsx",
"types": ["jest", "node"]
},
"files": ["src/test-setup.ts"],
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/src/generators/library/library.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ describe('lib', () => {
"compilerOptions": {
"outDir": "../dist/out-tsc",
"module": "commonjs",
"moduleResolution": "node10",
"jsx": "react-jsx",
"types": ["jest", "node"]
},
"files": ["src/test-setup.ts"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,17 @@ export async function webConfigurationGenerator(
);
}

tasks.push(
addDependenciesToPackageJson(
tree,
{},
{
'@types/react-dom': typesReactVersion,
}
)
);
if (!options.skipPackageJson) {
tasks.push(
addDependenciesToPackageJson(
tree,
{},
{
'@types/react-dom': typesReactVersion,
}
)
);
}

if (!options.skipFormat) {
await formatFiles(tree);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ describe('app', () => {
"jsx": "react-jsx",
"module": "esnext",
"moduleResolution": "bundler",
"outDir": "../dist/out-tsc",
"outDir": "./out-tsc/vitest",
"types": [
"vitest/globals",
"vitest/importMeta",
Expand Down
6 changes: 5 additions & 1 deletion packages/react/src/generators/library/library.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ module.exports = withNx(
],
},
"exclude": [
"dist",
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
Expand All @@ -963,6 +964,9 @@ module.exports = withNx(
"src/**/*.spec.js",
"src/**/*.test.jsx",
"src/**/*.spec.jsx",
"eslint.config.js",
"eslint.config.cjs",
"eslint.config.mjs",
],
"extends": "../tsconfig.base.json",
"include": [
Expand All @@ -979,7 +983,7 @@ module.exports = withNx(
"jsx": "react-jsx",
"module": "esnext",
"moduleResolution": "bundler",
"outDir": "../dist/out-tsc",
"outDir": "./out-tsc/vitest",
"types": [
"vitest/globals",
"vitest/importMeta",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ describe('Remix Application', () => {
],
},
"exclude": [
"dist",
"tests/**/*.spec.ts",
"tests/**/*.test.ts",
"tests/**/*.spec.tsx",
Expand All @@ -399,6 +400,9 @@ describe('Remix Application', () => {
"tests/**/*.test.js",
"tests/**/*.spec.jsx",
"tests/**/*.test.jsx",
"eslint.config.js",
"eslint.config.cjs",
"eslint.config.mjs",
],
"extends": "../tsconfig.base.json",
"include": [
Expand All @@ -419,7 +423,7 @@ describe('Remix Application', () => {
"jsx": "react-jsx",
"module": "esnext",
"moduleResolution": "bundler",
"outDir": "../dist/out-tsc",
"outDir": "./out-tsc/jest",
"types": [
"jest",
"node",
Expand Down
4 changes: 3 additions & 1 deletion packages/vite/src/generators/vitest/vitest-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ function createFiles(
extendedConfig: isTsSolutionSetup
? `${rootOffset}tsconfig.base.json`
: './tsconfig.json',
outDir: isTsSolutionSetup ? `./out-tsc/jest` : `${rootOffset}dist/out-tsc`,
outDir: isTsSolutionSetup
? `./out-tsc/vitest`
: `${rootOffset}dist/out-tsc`,
});
}

Expand Down

0 comments on commit ca32248

Please sign in to comment.