Skip to content

Commit

Permalink
move prepare scripts to bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Dec 14, 2024
1 parent 8e84c78 commit 65ddaca
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"build-app": "pnpm -F @altairgraphql/app build",
"build-electron": "pnpm build:ci && pnpm --dir packages/altair-electron build",
"build-ext": "pnpm build-app && cwex build",
"bootstrap": "turbo run bootstrap",
"build:ci": "pnpm -r prepare",
"ci:publish": "pnpm publish -r",
"local-verify": "pnpm build-app && pnpm build:ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-api-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"private": true,
"scripts": {
"build": "node ./scripts/build.cjs",
"prepare": "pnpm build"
"bootstrap": "pnpm build"
}
}
2 changes: 1 addition & 1 deletion packages/altair-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
"lint": "ng lint",
"new:component": "ng g component modules/altair/components/",
"ng": "ng",
"prepare": "pnpm build",
"bootstrap": "pnpm build",
"start": "ng serve",
"sentry:sourcemaps:inject": "sentry-cli sourcemaps inject --org altair-graphql --project electron ./dist",
"test": "jest && ng lint",
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"repository": "altair-graphql/altair.git",
"scripts": {
"build": "node ./scripts/build.js",
"prepare": "pnpm build",
"bootstrap": "pnpm build",
"test": "jest"
},
"types": "./build/index.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"private": true,
"scripts": {
"build": "tsc --build",
"prepare": "pnpm prisma:generate && pnpm build",
"bootstrap": "pnpm prisma:generate && pnpm build",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:push": "prisma db push",
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "vitepress dev",
"build": "pnpm --dir ../../ run typedoc && vitepress build",
"preview": "vitepress preview",
"prepare": "pnpm build"
"bootstrap": "pnpm build"
},
"private": true,
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-electron-interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"private": true,
"scripts": {
"build": "tsc --build",
"prepare": "pnpm build"
"bootstrap": "pnpm build"
}
}
2 changes: 1 addition & 1 deletion packages/altair-electron-settings-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "MIT",
"scripts": {
"compile": "node scripts/build.js",
"prepare": "pnpm prepare-dist && pnpm compile && pnpm types",
"bootstrap": "pnpm prepare-dist && pnpm compile && pnpm types",
"prepare-dist": "node scripts/prepare_dist.js",
"types": "dts-bundle-generator src/index.ts -o build/index.d.ts --external-inlines altair-graphql-core --external-inlines altair-static"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-electron-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"prepare": "pnpm build"
"bootstrap": "pnpm build"
},
"dependencies": {
"@altairgraphql/electron-interop": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"build": "pnpm compile && electron-builder",
"compile": "tsc && pnpm sentry:sourcemaps:inject",
"dev": "pnpm compile && electron ./dist/",
"prepare": "pnpm compile",
"bootstrap": "pnpm compile",
"test": "pnpm test:unit",
"test:e2e": "([[ -n $RUNNER_OS ]] && [[ $RUNNER_OS != 'Linux' ]]) && exit 0 || playwright test e2e",
"test:e2e:old": "jest -c jest.config.e2e.js --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-express-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"scripts": {
"declarations": "tsc --declaration",
"example": "nodemon example/index.ts",
"prepare": "pnpm declarations",
"bootstrap": "pnpm declarations",
"prepare-dist": "node scripts/prepare_dist.js",
"test": "echo \"Error: no test specified\" && exit 0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-fastify-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"repository": "altair-graphql/altair.git",
"scripts": {
"example": "ts-node example/mercurius.ts",
"prepare": "tsc",
"bootstrap": "tsc",
"test": "echo \"Error: no test specified\" && exit 0"
},
"types": "dist/index.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-iframe-sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --port 5123",
"build": "tsc && vite build",
"preview": "vite preview",
"prepare": "pnpm build",
"bootstrap": "pnpm build",
"test": "echo \"Error: no test specified\" && exit 0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-koa-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"scripts": {
"declarations": "tsc --declaration",
"example": "nodemon example/index.ts",
"prepare": "pnpm declarations",
"bootstrap": "pnpm declarations",
"test": "echo \"Error: no test specified\" && exit 0"
},
"types": "./build/src/index.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"repository": "altair-graphql/altair.git",
"scripts": {
"declarations": "tsc --declaration",
"prepare": "pnpm declarations",
"bootstrap": "pnpm declarations",
"test": "echo \"Error: no test specified\" && exit 0"
},
"types": "./build/index.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"repository": "altair-graphql/altair.git",
"scripts": {
"compile": "node scripts/build.js",
"prepare": "pnpm prepare-dist && pnpm compile && pnpm types",
"bootstrap": "pnpm prepare-dist && pnpm compile && pnpm types",
"prepare-dist": "node scripts/prepare_dist.js",
"test": "jest",
"types": "dts-bundle-generator src/index.ts -o build/index.d.ts --external-inlines altair-graphql-core --external-inlines altair-static --verbose"
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-altair-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"repository": "altair-graphql/altair.git",
"scripts": {
"compile": "tsc --declaration",
"prepare": "pnpm compile",
"bootstrap": "pnpm compile",
"test": "echo \"Error: no test specified\" && exit 0"
}
}
2 changes: 1 addition & 1 deletion packages/login-redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"build": "rimraf dist && tsc && vite build",
"dev": "vite --port 1234",
"prepare": "pnpm build"
"bootstrap": "pnpm build"
},
"source": "src/index.html",
"targets": {
Expand Down
2 changes: 1 addition & 1 deletion packages/transactional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"build": "tsc",
"dev": "email dev",
"prepare": "pnpm build"
"bootstrap": "pnpm build"
},
"private": true
}
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tasks": {
"build": {},
"lint": {},
"prepare": {},
"bootstrap": {},
"test": {}
}
}

0 comments on commit 65ddaca

Please sign in to comment.