@stardeck-customer-apps/compose 0.11.0 → 0.12.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/SKILL.md CHANGED
@@ -23,6 +23,12 @@ Compose turns that declaration into the code Next.js actually builds:
23
23
  kept Module's `enhancements/<excluded>/`. Their source stays on disk but their
24
24
  stubs are gone, so `next build` must type-check through this file
25
25
  (`typescript.tsconfigPath` in `next.config.ts`), never through `tsconfig.json`.
26
+ It also skips test-only files (`*.test.ts(x)`, `*.spec.ts(x)`, `__tests__/`,
27
+ `test-utils/`, `test-helpers.ts`, Module `tests/` and `e2e/` folders, the
28
+ app's `e2e/`, `tests/`, `scripts/`, and the vitest/playwright configs), which
29
+ halves a Blueprint's deploy type-check. `npm run typecheck` still covers them
30
+ through `tsconfig.json`, so keep running it. A skipped file the app does
31
+ import is still type-checked through that import.
26
32
  Gitignore it; do not hand-maintain an exclude list.
27
33
 
28
34
  ## Running it
package/dist/cli.js CHANGED
@@ -7716,6 +7716,24 @@ function assertNoAppLayerImporters(cwd, excluded) {
7716
7716
  var TSCONFIG_PATH = "apps/web/tsconfig.json";
7717
7717
  var BUILD_TSCONFIG_PATH = "apps/web/tsconfig.build.gen.json";
7718
7718
  var BUILD_TSCONFIG_HEADER = "// Generated by stardeck-compose \u2014 the tsconfig `next build` type-checks. Do not edit or commit.";
7719
+ var BUILD_TYPECHECK_SKIP = [
7720
+ "**/*.test.ts",
7721
+ "**/*.test.tsx",
7722
+ "**/*.spec.ts",
7723
+ "**/*.spec.tsx",
7724
+ "**/__tests__",
7725
+ "**/test-utils",
7726
+ "**/test-helpers.ts",
7727
+ // Module test suites, including those inside enhancement slices.
7728
+ "src/modules/**/tests",
7729
+ "src/modules/**/e2e",
7730
+ "e2e",
7731
+ "tests",
7732
+ "scripts",
7733
+ "vitest.config.ts",
7734
+ "vitest.setup.ts",
7735
+ "playwright.config.ts"
7736
+ ];
7719
7737
  function writeBuildTsconfig(cwd, excluded) {
7720
7738
  const baseFile = import_node_path3.default.join(cwd, TSCONFIG_PATH);
7721
7739
  if (!import_node_fs3.default.existsSync(import_node_path3.default.join(cwd, MODULES_DIR2)) || !import_node_fs3.default.existsSync(baseFile)) return;
@@ -7731,6 +7749,7 @@ function writeBuildTsconfig(cwd, excluded) {
7731
7749
  extends: "./tsconfig.json",
7732
7750
  exclude: [
7733
7751
  ...baseExclude,
7752
+ ...BUILD_TYPECHECK_SKIP,
7734
7753
  ...excluded.flatMap((name) => [
7735
7754
  `${modulesDir}/${name}`,
7736
7755
  `${modulesDir}/*/enhancements/${name}`
package/dist/index.js CHANGED
@@ -7726,6 +7726,24 @@ function assertNoAppLayerImporters(cwd, excluded) {
7726
7726
  var TSCONFIG_PATH = "apps/web/tsconfig.json";
7727
7727
  var BUILD_TSCONFIG_PATH = "apps/web/tsconfig.build.gen.json";
7728
7728
  var BUILD_TSCONFIG_HEADER = "// Generated by stardeck-compose \u2014 the tsconfig `next build` type-checks. Do not edit or commit.";
7729
+ var BUILD_TYPECHECK_SKIP = [
7730
+ "**/*.test.ts",
7731
+ "**/*.test.tsx",
7732
+ "**/*.spec.ts",
7733
+ "**/*.spec.tsx",
7734
+ "**/__tests__",
7735
+ "**/test-utils",
7736
+ "**/test-helpers.ts",
7737
+ // Module test suites, including those inside enhancement slices.
7738
+ "src/modules/**/tests",
7739
+ "src/modules/**/e2e",
7740
+ "e2e",
7741
+ "tests",
7742
+ "scripts",
7743
+ "vitest.config.ts",
7744
+ "vitest.setup.ts",
7745
+ "playwright.config.ts"
7746
+ ];
7729
7747
  function writeBuildTsconfig(cwd, excluded) {
7730
7748
  const baseFile = import_node_path3.default.join(cwd, TSCONFIG_PATH);
7731
7749
  if (!import_node_fs3.default.existsSync(import_node_path3.default.join(cwd, MODULES_DIR2)) || !import_node_fs3.default.existsSync(baseFile)) return;
@@ -7741,6 +7759,7 @@ function writeBuildTsconfig(cwd, excluded) {
7741
7759
  extends: "./tsconfig.json",
7742
7760
  exclude: [
7743
7761
  ...baseExclude,
7762
+ ...BUILD_TYPECHECK_SKIP,
7744
7763
  ...excluded.flatMap((name) => [
7745
7764
  `${modulesDir}/${name}`,
7746
7765
  `${modulesDir}/*/enhancements/${name}`
package/dist/index.mjs CHANGED
@@ -7707,6 +7707,24 @@ function assertNoAppLayerImporters(cwd, excluded) {
7707
7707
  var TSCONFIG_PATH = "apps/web/tsconfig.json";
7708
7708
  var BUILD_TSCONFIG_PATH = "apps/web/tsconfig.build.gen.json";
7709
7709
  var BUILD_TSCONFIG_HEADER = "// Generated by stardeck-compose \u2014 the tsconfig `next build` type-checks. Do not edit or commit.";
7710
+ var BUILD_TYPECHECK_SKIP = [
7711
+ "**/*.test.ts",
7712
+ "**/*.test.tsx",
7713
+ "**/*.spec.ts",
7714
+ "**/*.spec.tsx",
7715
+ "**/__tests__",
7716
+ "**/test-utils",
7717
+ "**/test-helpers.ts",
7718
+ // Module test suites, including those inside enhancement slices.
7719
+ "src/modules/**/tests",
7720
+ "src/modules/**/e2e",
7721
+ "e2e",
7722
+ "tests",
7723
+ "scripts",
7724
+ "vitest.config.ts",
7725
+ "vitest.setup.ts",
7726
+ "playwright.config.ts"
7727
+ ];
7710
7728
  function writeBuildTsconfig(cwd, excluded) {
7711
7729
  const baseFile = path3.join(cwd, TSCONFIG_PATH);
7712
7730
  if (!fs3.existsSync(path3.join(cwd, MODULES_DIR2)) || !fs3.existsSync(baseFile)) return;
@@ -7722,6 +7740,7 @@ function writeBuildTsconfig(cwd, excluded) {
7722
7740
  extends: "./tsconfig.json",
7723
7741
  exclude: [
7724
7742
  ...baseExclude,
7743
+ ...BUILD_TYPECHECK_SKIP,
7725
7744
  ...excluded.flatMap((name) => [
7726
7745
  `${modulesDir}/${name}`,
7727
7746
  `${modulesDir}/*/enhancements/${name}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stardeck-customer-apps/compose",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Regenerates a Stardeck app's Module-rail artifacts — the six src/*.gen.ts registries and every route/endpoint stub — from src/modules/*/module.json",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",