mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Replace npx with pnpx across the board
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test With Custom Base Port / restart-dev-and-test-with-custom-base-port (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test With Custom Base Port / restart-dev-and-test-with-custom-base-port (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
This commit is contained in:
parent
1408aaea20
commit
98b573877c
4
.github/workflows/e2e-api-tests.yaml
vendored
4
.github/workflows/e2e-api-tests.yaml
vendored
@ -89,10 +89,10 @@ jobs:
|
||||
run: pnpm run wait-until-postgres-is-ready:pg_isready
|
||||
|
||||
- name: Wait on Inbucket
|
||||
run: npx wait-on tcp:localhost:8129
|
||||
run: pnpx wait-on tcp:localhost:8129
|
||||
|
||||
- name: Wait on Svix
|
||||
run: npx wait-on tcp:localhost:8113
|
||||
run: pnpx wait-on tcp:localhost:8113
|
||||
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
@ -90,10 +90,10 @@ jobs:
|
||||
run: pnpm run wait-until-postgres-is-ready:pg_isready
|
||||
|
||||
- name: Wait on Inbucket
|
||||
run: npx wait-on tcp:localhost:6729
|
||||
run: pnpx wait-on tcp:localhost:6729
|
||||
|
||||
- name: Wait on Svix
|
||||
run: npx wait-on tcp:localhost:6713
|
||||
run: pnpx wait-on tcp:localhost:6713
|
||||
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
@ -91,10 +91,10 @@ jobs:
|
||||
run: pnpm run wait-until-postgres-is-ready:pg_isready
|
||||
|
||||
- name: Wait on Inbucket
|
||||
run: npx wait-on tcp:localhost:8129
|
||||
run: pnpx wait-on tcp:localhost:8129
|
||||
|
||||
- name: Wait on Svix
|
||||
run: npx wait-on tcp:localhost:8113
|
||||
run: pnpx wait-on tcp:localhost:8113
|
||||
|
||||
- name: Create source-of-truth database and schema
|
||||
run: |
|
||||
|
||||
@ -55,10 +55,10 @@ export default function SetupPage(props: { toMetrics: () => void }) {
|
||||
</Typography>
|
||||
<CodeBlock
|
||||
language="bash"
|
||||
content={`npx @stackframe/init-stack@latest`}
|
||||
content={`pnpx @stackframe/init-stack@latest`}
|
||||
customRender={
|
||||
<div className="p-4 font-mono text-sm">
|
||||
<span className={commandClasses}>npx</span> <span className={nameClasses}>@stackframe/init-stack@latest</span>
|
||||
<span className={commandClasses}>pnpx</span> <span className={nameClasses}>@stackframe/init-stack@latest</span>
|
||||
</div>
|
||||
}
|
||||
title="Terminal"
|
||||
|
||||
@ -300,14 +300,6 @@
|
||||
"React example",
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "MCPJam Inspector",
|
||||
portSuffix: "26",
|
||||
importance: 1,
|
||||
description: [
|
||||
"MCP tool inspector",
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Convex example",
|
||||
portSuffix: "27",
|
||||
|
||||
@ -204,22 +204,6 @@ services:
|
||||
environment:
|
||||
HOST_ON_HOST: host.docker.internal
|
||||
|
||||
# ================= MCPJam Inspector =================
|
||||
|
||||
mcpjam-inspector:
|
||||
image: node:20-alpine
|
||||
ports:
|
||||
- "${NEXT_PUBLIC_STACK_PORT_PREFIX:-81}26:3001"
|
||||
command: >
|
||||
sh -c "echo '{\"mcpServers\":{\"local-stack-auth-docs\":{\"url\":\"http://host.docker.internal:${NEXT_PUBLIC_STACK_PORT_PREFIX:-81}04/api/internal/mcp\"}}}' > /app/mcp.json && npx -y @mcpjam/inspector@latest --port 3001 --config /app/mcp.json"
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- mcpjam-inspector-data:/root
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway" # noop on Docker Desktop/Orbstack, enables host.docker.internal on Linux
|
||||
environment:
|
||||
HOST_ON_HOST: host.docker.internal
|
||||
|
||||
|
||||
# ================= volumes =================
|
||||
|
||||
@ -231,7 +215,6 @@ volumes:
|
||||
s3mock-data:
|
||||
deno-cache:
|
||||
localstack-data:
|
||||
mcpjam-inspector-data:
|
||||
|
||||
# ================= configs =================
|
||||
|
||||
|
||||
14
package.json
14
package.json
@ -4,8 +4,8 @@
|
||||
"private": true,
|
||||
"repository": "",
|
||||
"scripts": {
|
||||
"pre-no-codegen": "npx -y only-allow pnpm",
|
||||
"pre-preinstall": "npx -y only-allow pnpm && node -e \"if(process.env.STACK_SKIP_TEMPLATE_GENERATION !== 'true') require('child_process').execSync('npx --package=tsx tsx ./scripts/generate-sdks.ts', {stdio: 'inherit'})\"",
|
||||
"pre-no-codegen": "pnpx -y only-allow pnpm",
|
||||
"pre-preinstall": "pnpx -y only-allow pnpm && node -e \"if(process.env.STACK_SKIP_TEMPLATE_GENERATION !== 'true') require('child_process').execSync('pnpx --package=tsx tsx ./scripts/generate-sdks.ts', {stdio: 'inherit'})\"",
|
||||
"pre": "pnpm pre-preinstall",
|
||||
"preinstall": "pnpm pre-preinstall",
|
||||
"typecheck": "pnpm pre && turbo typecheck --",
|
||||
@ -16,10 +16,10 @@
|
||||
"build:demo": "pnpm pre && turbo run build --filter=demo-app...",
|
||||
"build:docs": "pnpm run build:packages && pnpm run build:backend && turbo run generate-openapi-fumadocs && pnpm run --filter=@stackframe/stack-docs generate-openapi-docs && turbo run build --filter=@stackframe/stack-docs",
|
||||
"build:packages": "pnpm pre && turbo run build --filter=./packages/*",
|
||||
"claude-code": "pnpm pre && npx -y @anthropic-ai/claude-code@latest",
|
||||
"cmux": "pnpm pre && npx -y cmux@latest",
|
||||
"codebuff": "pnpm pre && npx codebuff",
|
||||
"restart-dev-in-background": "pnpm pre && pnpm run kill-dev:named && (pnpm run dev:named > dev-server.log.untracked.txt 2>&1 &) && echo 'Starting dev server in background... (Logs are in dev-server.log.untracked.txt)' && npx wait-on http://localhost:${NEXT_PUBLIC_STACK_PORT_PREFIX:-81}02 -t 120000 && echo 'Dev server running.'",
|
||||
"claude-code": "pnpm pre && pnpx -y @anthropic-ai/claude-code@latest",
|
||||
"cmux": "pnpm pre && pnpx -y cmux@latest",
|
||||
"codebuff": "pnpm pre && pnpx codebuff",
|
||||
"restart-dev-in-background": "pnpm pre && pnpm run kill-dev:named && (pnpm run dev:named > dev-server.log.untracked.txt 2>&1 &) && echo 'Starting dev server in background... (Logs are in dev-server.log.untracked.txt)' && pnpx wait-on http://localhost:${NEXT_PUBLIC_STACK_PORT_PREFIX:-81}02 -t 120000 && echo 'Dev server running.'",
|
||||
"restart-dev-environment": "pnpm pre && concurrently \"pnpm run build:packages && pnpm run codegen\" \"pnpm run restart-deps\" && pnpm run restart-dev-in-background",
|
||||
"stop-dev-environment": "pnpm pre && pnpm run kill-dev:named && pnpm run stop-deps",
|
||||
"clean": "pnpm pre-no-codegen && turbo run clean && rimraf --glob **/.next && rimraf --glob **/.turbo && rimraf .turbo && rimraf --glob **/node_modules",
|
||||
@ -60,7 +60,7 @@
|
||||
"verify-data-integrity": "pnpm pre && pnpm -C apps/backend run verify-data-integrity",
|
||||
"generate-openapi-fumadocs": "turbo run generate-openapi-fumadocs",
|
||||
"generate-keys": "pnpm pre && turbo run generate-keys",
|
||||
"generate-sdks": "npx --package=tsx tsx ./scripts/generate-sdks.ts",
|
||||
"generate-sdks": "pnpx --package=tsx tsx ./scripts/generate-sdks.ts",
|
||||
"generate-sdks:watch": "chokidar --silent -c 'pnpm run generate-sdks' './packages/template' --ignore './packages/template/package.json' --ignore '**/node_modules/**' --ignore '**/dist/**' --ignore '**/.turbo/**' --throttle 2000",
|
||||
"generate-openapi-docs:watch": "chokidar --silent -c 'pnpm run --filter=@stackframe/stack-docs generate-openapi-docs' './docs/public/openapi/{admin,client,server,webhooks}.json' --throttle 2000"
|
||||
},
|
||||
|
||||
@ -21,14 +21,14 @@
|
||||
"test-run-no-browser": "rimraf test-run-output && mkdir test-run-output && cd test-run-output && npm init --init-author-name example-author --init-license UNLICENSED --init-author-url http://example.com --init-module test-run-output --init-version 1.0.0 -y && cd .. && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --js --server --npm --no-browser",
|
||||
"test-run-node:manual": "rimraf test-run-output && mkdir test-run-output && cd test-run-output && npm init && cd .. && pnpm run init-stack:local test-run-output",
|
||||
"test-run-node": "rimraf test-run-output && mkdir test-run-output && cd test-run-output && npm init --init-author-name example-author --init-license UNLICENSED --init-author-url http://example.com --init-module test-run-output --init-version 1.0.0 -y && cd .. && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --js --server --npm --no-browser",
|
||||
"test-run-js:manual": "rimraf test-run-output && npx -y sv create test-run-output --no-install && pnpm run init-stack:local test-run-output",
|
||||
"test-run-js": "rimraf test-run-output && npx -y sv create test-run-output --template minimal --types ts --no-add-ons --no-install && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --js --client --npm --no-browser",
|
||||
"test-run-next:manual": "rimraf test-run-output && npx -y create-next-app@latest test-run-output && pnpm run init-stack:local test-run-output",
|
||||
"test-run-next": "rimraf test-run-output && npx -y create-next-app@latest test-run-output --app --ts --no-src-dir --tailwind --use-npm --eslint --import-alias '##@#/*' --turbopack && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --no-browser",
|
||||
"test-run-keys-next": "rimraf test-run-output && npx -y create-next-app@latest test-run-output --app --ts --no-src-dir --tailwind --use-npm --eslint --import-alias '##@#/*' --turbopack && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --project-id my-project-id --publishable-client-key my-publishable-client-key",
|
||||
"test-run-keys-js": "rimraf test-run-output && npx -y sv create test-run-output --template minimal --types ts --no-add-ons --no-install && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --js --client --npm --project-id my-project-id --publishable-client-key my-publishable-client-key",
|
||||
"test-run-react": "rimraf test-run-output && npx -y create-vite@latest test-run-output --template react-ts && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --no-browser --npm",
|
||||
"test-run-react:manual": "rimraf test-run-output && npx -y create-vite@latest test-run-output --template react-ts && pnpm run init-stack:local test-run-output --react"
|
||||
"test-run-js:manual": "rimraf test-run-output && pnpx -y sv create test-run-output --no-install && pnpm run init-stack:local test-run-output",
|
||||
"test-run-js": "rimraf test-run-output && pnpx -y sv create test-run-output --template minimal --types ts --no-add-ons --no-install && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --js --client --npm --no-browser",
|
||||
"test-run-next:manual": "rimraf test-run-output && pnpx -y create-next-app@latest test-run-output && pnpm run init-stack:local test-run-output",
|
||||
"test-run-next": "rimraf test-run-output && pnpx -y create-next-app@latest test-run-output --app --ts --no-src-dir --tailwind --use-npm --eslint --import-alias '##@#/*' --turbopack && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --no-browser",
|
||||
"test-run-keys-next": "rimraf test-run-output && pnpx -y create-next-app@latest test-run-output --app --ts --no-src-dir --tailwind --use-npm --eslint --import-alias '##@#/*' --turbopack && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --project-id my-project-id --publishable-client-key my-publishable-client-key",
|
||||
"test-run-keys-js": "rimraf test-run-output && pnpx -y sv create test-run-output --template minimal --types ts --no-add-ons --no-install && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --js --client --npm --project-id my-project-id --publishable-client-key my-publishable-client-key",
|
||||
"test-run-react": "rimraf test-run-output && pnpx -y create-vite@latest test-run-output --template react-ts && pnpm run init-stack:local test-run-output --on-question error --no-warn-uncommitted-changes --no-browser --npm",
|
||||
"test-run-react:manual": "rimraf test-run-output && pnpx -y create-vite@latest test-run-output --template react-ts && pnpm run init-stack:local test-run-output --react"
|
||||
},
|
||||
"files": [
|
||||
"README.md",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user