Skip to content

Commit

Permalink
fix(pre): removing the pre steps from turbo repo since they are ran o…
Browse files Browse the repository at this point in the history
…n their own
  • Loading branch information
bassrock committed Aug 22, 2024
1 parent c9110b5 commit 1b6e830
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 66 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "pocket-monorepo",
"private": true,
"scripts": {
"prebuild": "dotenv -- turbo run prebuild",
"build": "dotenv -- turbo run build",
"clean": "rm -rf .turbo node_modules packages/**/.turbo packages/**/dist packages/**/node_modules servers/**/logs servers/**/.turbo servers/**/dist servers/**/node_modules lambdas/**/logs lambdas/**/.turbo lambdas/**/dist lambdas/**/node_modules infrastructure/**/dist infrastructure/**/node_modules infrastructure/**/.turbo infrastructure/**/cdktf.out",
"dev": "dotenv -- turbo run dev --concurrency 50",
Expand All @@ -15,7 +14,6 @@
"prepare": "husky",
"semantic-release": "dotenv -- turbo run semantic-release",
"synth": "dotenv -- turbo run synth",
"pretest-integrations": "dotenv -- turbo run pretest-integrations",
"test": "dotenv -- turbo run test",
"test-integrations": "dotenv -- turbo run test-integrations"
},
Expand All @@ -40,4 +38,4 @@
"engines": {
"node": "^20.16"
}
}
}
86 changes: 23 additions & 63 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,100 +11,60 @@
],
"tasks": {
"build": {
"dependsOn": [
"prebuild",
"^build"
],
"dependsOn": ["^build"],
"inputs": [
"src/**/*",
"tsconfig.json",
"package.json"
"package.json",
"schema-public.graphql",
"schema-shared.graphql",
"schema-admin.graphql",
"schema.graphql",
"prisma/schema.prisma",
"src/graphql/**/*.graphql",
"codegen.ts"
],
"outputs": [
"dist/**"
"dist/**",
"schema-admin-api.graphql",
"schema-client-api.graphql",
"prisma/src/**/*",
"src/generated/**/*",
"src/__generated__/**/*"
],
"cache": true
},
"synth": {
"dependsOn": [
"@pocket-tools/terraform-modules#build"
],
"dependsOn": ["@pocket-tools/terraform-modules#build"],
"inputs": [
"src/**/*",
"package.json",
"cdktf.json",
".terraform-version"
],
"outputs": [
"cdktf.out/**/*"
]
"outputs": ["cdktf.out/**/*"]
},
"lint": {
"inputs": [
"src/**/*",
"eslint.config.js",
"package.json"
]
"inputs": ["src/**/*", "eslint.config.js", "package.json"]
},
"format": {
"inputs": [
"src/**/*",
"eslint.config.js",
"package.json"
]
"inputs": ["src/**/*", "eslint.config.js", "package.json"]
},
"semantic-release": {
"dependsOn": [
"^build",
"build"
]
"dependsOn": ["^build", "build"]
},
"test": {
"inputs": [
"src/**/*",
"package.json",
"jest.config.js",
"jest.setup.js"
],
"dependsOn": [
"^build",
"prebuild"
],
"inputs": ["src/**/*", "package.json", "jest.config.js", "jest.setup.js"],
"dependsOn": ["^build", "prebuild"],
"cache": true
},
"test-integrations": {
"dependsOn": [
"^build",
"prebuild",
"pretest-integrations"
],
"dependsOn": ["^build"],
"cache": false
},
"dev": {
"cache": false,
"persistent": true
},
"prebuild": {
"inputs": [
"schema-public.graphql",
"schema-shared.graphql",
"schema-admin.graphql",
"schema.graphql",
"prisma/schema.prisma",
"src/graphql/**/*.graphql",
"codegen.ts"
],
"outputs": [
"schema-admin-api.graphql",
"schema-client-api.graphql",
"prisma/src/**/*",
"src/generated/**/*",
"src/__generated__/**/*"
],
"cache": true
},
"pretest-integrations": {
"cache": false
}
}
}

0 comments on commit 1b6e830

Please sign in to comment.