@multisystemsuite/create-mf-app 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +26 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3523,6 +3523,7 @@ function mergeAppTsconfigForQuality(existing) {
3523
3523
  } catch {
3524
3524
  }
3525
3525
  const prevInclude = Array.isArray(parsed.include) ? parsed.include : ["src"];
3526
+ const prevExclude = Array.isArray(parsed.exclude) ? parsed.exclude : [];
3526
3527
  const merged = {
3527
3528
  extends: "../../tsconfig.base.json",
3528
3529
  compilerOptions: {
@@ -3531,10 +3532,14 @@ function mergeAppTsconfigForQuality(existing) {
3531
3532
  },
3532
3533
  include: Array.from(
3533
3534
  /* @__PURE__ */ new Set([
3534
- ...prevInclude.filter((f) => f !== "vite.config.ts" && f !== "vitest.config.ts"),
3535
- "src",
3536
- "src/tests"
3535
+ ...prevInclude.filter(
3536
+ (f) => f !== "vite.config.ts" && f !== "vitest.config.ts" && f !== "src/tests" && !f.includes("tests")
3537
+ ),
3538
+ "src"
3537
3539
  ])
3540
+ ),
3541
+ exclude: Array.from(
3542
+ /* @__PURE__ */ new Set([...prevExclude, "src/tests", "src/tests/**", "**/*.test.ts", "**/*.test.tsx", "vitest.config.ts"])
3538
3543
  )
3539
3544
  };
3540
3545
  if (parsed.references) merged.references = parsed.references;
@@ -7936,7 +7941,7 @@ export function clearQueryCache(client: QueryClient): void {
7936
7941
  client.clear();
7937
7942
  }
7938
7943
  `;
7939
- const providerBody = `import type { ReactNode } from "react";
7944
+ const providerBody = `import React, { type ReactNode } from "react";
7940
7945
  import { QueryClientProvider } from "@tanstack/react-query";
7941
7946
  import { createAppQueryClient } from "./index";
7942
7947
 
@@ -7951,6 +7956,23 @@ export { queryClient };
7951
7956
  return {
7952
7957
  ...pkg(scope, "query-client", "./src/index.ts", { "@tanstack/react-query": "^5.66.9" }, indexBody),
7953
7958
  [`packages/query-client/src/QueryProvider.tsx`]: providerBody,
7959
+ [`packages/query-client/tsconfig.json`]: `${JSON.stringify(
7960
+ {
7961
+ compilerOptions: {
7962
+ target: "ES2022",
7963
+ module: "ESNext",
7964
+ moduleResolution: "Bundler",
7965
+ jsx: "react-jsx",
7966
+ strict: true,
7967
+ skipLibCheck: true,
7968
+ noEmit: true
7969
+ },
7970
+ include: ["src"]
7971
+ },
7972
+ null,
7973
+ 2
7974
+ )}
7975
+ `,
7954
7976
  [`packages/query-client/package.json`]: `${JSON.stringify(
7955
7977
  {
7956
7978
  name: `@${scope}/query-client`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multisystemsuite/create-mf-app",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Production-ready TypeScript CLI to scaffold enterprise microfrontend apps with React, Vite and Module Federation.",
5
5
  "license": "MIT",
6
6
  "keywords": [