Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ srcbook/lib/**/*

# Aide
*.code-workspace

vite.config.ts.timestamp-*.mjs
4 changes: 3 additions & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"dev": "vite-node -w dev-server.mts",
"test": "vitest",
"prebuild": "rm -rf ./dist",
"prebuild": "pnpm dlx rimraf ./dist",
"build": "tsc && cp -R ./drizzle ./dist/drizzle && cp -R ./srcbook/examples ./dist/srcbook/examples && cp -R ./prompts ./dist/prompts && cp -R ./apps/templates ./dist/apps/templates",
"lint": "eslint . --max-warnings 0",
"check-types": "tsc",
Expand Down Expand Up @@ -45,7 +45,9 @@
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/ws": "^8.5.12",
"cpx": "^1.5.0",
"drizzle-kit": "^0.24.2",
"rimraf": "^6.0.1",
"vite": "^5.4.4",
"vite-node": "^2.0.5",
"vitest": "^2.0.5"
Expand Down
3 changes: 2 additions & 1 deletion packages/api/tsserver/tsservers.mts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export class TsServers {
// created, the dependencies are not installed and thus this will
// shut down immediately. Make sure that we handle this case after
// package.json has finished installing its deps.
const child = spawn('npx', ['tsserver'], {
const child = spawn('pnpm', ['dlx' ,'tsserver'], {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to do this, because pnpm is a dependency for dev, but not for users. This would require our users to have pnpm installed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooo okay, I didn't think that way. I will look into this further. Thank you!

cwd: options.cwd,
shell: true
});

const server = new TsServer(child);
Expand Down
5 changes: 4 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"main": "./dist/index.mjs",
"scripts": {
"prebuild": "rm -rf ./dist",
"prebuild": "rimraf ./dist",
"build": "tsc",
"dev": "tsc --incremental --watch --project .",
"lint": "eslint . --max-warnings 0",
Expand All @@ -14,5 +14,8 @@
"dependencies": {
"@scure/base": "^1.1.8",
"zod": "catalog:"
},
"devDependencies": {
"rimraf": "^6.0.1"
}
}
59 changes: 59 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.