@atlashub/smartstack-cli 4.5.0 → 4.7.0

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.
package/dist/index.js CHANGED
@@ -117173,7 +117173,10 @@ async function createFrontendStructure(config, state, dryRun) {
117173
117173
  "build:prod": "vite build",
117174
117174
  typecheck: "tsc -b",
117175
117175
  lint: "eslint .",
117176
- preview: "vite preview"
117176
+ preview: "vite preview",
117177
+ test: "vitest run",
117178
+ "test:watch": "vitest",
117179
+ "test:coverage": "vitest run --coverage"
117177
117180
  },
117178
117181
  dependencies: {
117179
117182
  "@atlashub/smartstack": `^${config.smartStackVersion || "3.0.0"}`,
@@ -117193,17 +117196,23 @@ async function createFrontendStructure(config, state, dryRun) {
117193
117196
  },
117194
117197
  devDependencies: {
117195
117198
  "@eslint/js": "^9.0.0",
117196
- "@types/node": "^22.0.0",
117199
+ "@testing-library/jest-dom": "^6.0.0",
117200
+ "@testing-library/react": "^16.0.0",
117201
+ "@testing-library/user-event": "^14.0.0",
117202
+ "@types/node": "^24.0.0",
117197
117203
  "@types/react": "^19.0.0",
117198
117204
  "@types/react-dom": "^19.0.0",
117199
117205
  "@vitejs/plugin-react": "^5.0.0",
117206
+ "@vitest/coverage-v8": "^3.0.0",
117200
117207
  eslint: "^9.0.0",
117201
117208
  "eslint-plugin-react-hooks": "^7.0.0",
117202
- "eslint-plugin-react-refresh": "^0.5.0",
117209
+ "eslint-plugin-react-refresh": "^0.4.0",
117203
117210
  globals: "^16.0.0",
117204
- typescript: "^5.7.0",
117211
+ jsdom: "^26.0.0",
117212
+ typescript: "~5.9.0",
117205
117213
  "typescript-eslint": "^8.0.0",
117206
- vite: "^7.0.0"
117214
+ vite: "^7.0.0",
117215
+ vitest: "^3.0.0"
117207
117216
  }
117208
117217
  };
117209
117218
  const pkg_relPath = `${webRelPrefix}/package.json`;
@@ -117289,6 +117298,13 @@ export default defineConfig(({ mode }) => {
117289
117298
  target: apiUrl,
117290
117299
  changeOrigin: true,
117291
117300
  secure: false,
117301
+ bypass(req, _res, _options) {
117302
+ // Prevent SPA routes like /api/accounts (React components) from being proxied
117303
+ if (req.headers.accept?.includes('text/html') &&
117304
+ !req.url?.startsWith('/api/auth/')) {
117305
+ return req.url;
117306
+ }
117307
+ },
117292
117308
  },
117293
117309
  // SignalR WebSocket proxy
117294
117310
  '/hubs': {
@@ -117318,14 +117334,15 @@ export default defineConfig(({ mode }) => {
117318
117334
  recordFile(state, "frontend", vite_relPath, vite_result.hash);
117319
117335
  const tsConfig = {
117320
117336
  compilerOptions: {
117321
- target: "ES2020",
117337
+ target: "ES2022",
117322
117338
  useDefineForClassFields: true,
117323
- lib: ["ES2020", "DOM", "DOM.Iterable"],
117339
+ lib: ["ES2022", "DOM", "DOM.Iterable"],
117324
117340
  module: "ESNext",
117325
117341
  skipLibCheck: true,
117326
117342
  moduleResolution: "bundler",
117327
117343
  allowImportingTsExtensions: true,
117328
- isolatedModules: true,
117344
+ verbatimModuleSyntax: true,
117345
+ erasableSyntaxOnly: true,
117329
117346
  moduleDetection: "force",
117330
117347
  noEmit: true,
117331
117348
  jsx: "react-jsx",
@@ -117438,6 +117455,7 @@ export default App;
117438
117455
  recordFile(state, "frontend", app_relPath, app_result.hash);
117439
117456
  const indexCss = `@import "tailwindcss";
117440
117457
  @source "../node_modules/@atlashub/smartstack/dist/**/*.js";
117458
+ @custom-variant dark (&:where(.dark, .dark *));
117441
117459
  `;
117442
117460
  const css_relPath = `${webRelPrefix}/src/index.css`;
117443
117461
  const css_result = await safeWriteFile((0, import_path7.join)(webDir, "src", "index.css"), indexCss, findKnownHash(state, "frontend", css_relPath));