Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions epicshop/generate-app-artifacts.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import path from 'node:path'
import { getApps } from '@epic-web/workshop-utils/apps.server'
import {
getApps,
isSolutionApp,
} from '@epic-web/workshop-utils/apps.server'
import { execa } from 'execa'
import fsExtra from 'fs-extra'

const allApps = await getApps()
const solutionApps = allApps.filter(isSolutionApp)

for (const app of allApps) {
for (const app of solutionApps) {
const reactRouterConfig = path.join(app.fullPath, 'react-router.config.ts')
if (await fsExtra.pathExists(reactRouterConfig)) {
console.log(`Generating React Router types for ${app.relativePath}`)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"setup": "pkgmgrx epicshop setup",
"setup:custom": "node ./epicshop/setup-custom.js",
"generate": "node ./epicshop/generate-app-artifacts.js",
"lint": "eslint .",
"lint": "eslint epicshop",
"format": "prettier --write .",
"typecheck": "tsc -b",
"typecheck": "npm run generate",
"validate:all": "npm-run-all --parallel --print-label --print-name --continue-on-error test:all lint typecheck"
},
"keywords": [],
Expand Down
Loading