Added Build File Caching (#37459)

Since these files can impact the build, we need to make sure to use
them as part of the cache key.
This commit is contained in:
Christopher Allford 2023-03-28 12:48:20 -07:00 committed by GitHub
parent 30ea6cfc71
commit 2f4f0bea54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -53,7 +53,7 @@
},
"scripts": {
"turbo:build": "./bin/build.sh && pnpm run clean && pnpm run compile",
"prepare": "pnpm run build",
"prepack": "pnpm run build",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",

View File

@ -69,7 +69,7 @@
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"prepare": "pnpm run build",
"prepack": "pnpm run build",
"docker:up": "./bin/docker-compose.sh up",
"docker:wait": "bash ./bin/wait-for-build.sh",
"docker:down": "./bin/docker-compose.sh down",

View File

@ -51,7 +51,7 @@
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"prepare": "pnpm run build",
"prepack": "pnpm run build",
"lint": "eslint src --ext=js,ts,tsx",
"lint:fix": "eslint src --ext=js,ts,tsx --fix"
},

View File

@ -18,7 +18,9 @@
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.php",
"includes/**/*.php"
"includes/**/*.php",
"webpack.config.js",
"tsconfig.json"
],
"outputs": [
"dist/**",
@ -77,7 +79,9 @@
"client/**/*.jsx",
"client/**/*.ts",
"client/**/*.tsx",
"client/**/*.scss"
"client/**/*.scss",
"webpack.config.js",
"tsconfig.json"
],
"outputMode": "new-only"
},