Skip to content

Commit

Permalink
[infra] Misc wireit tweaks (#3150)
Browse files Browse the repository at this point in the history
Makes a few more package scripts cacheable by adding input/output files, and fixes a syntax error in one case.
  • Loading branch information
aomarks committed Jul 21, 2022
1 parent a6fad09 commit 3cb2e52
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .changeset/thin-jars-bathe.md
@@ -0,0 +1,2 @@
---
---
20 changes: 18 additions & 2 deletions package.json
Expand Up @@ -107,6 +107,14 @@
"hack integrates it into the overall build with correct ordering."
],
"command": "cd packages/lit-starter-ts && npm run build",
"files": [
"./packages/lit-starter-ts/tsconfig.json",
"./packages/lit-starter-ts/src/**/*.ts"
],
"output": [
"./packages/lit-starter-ts/my-element.{js,js.map,d.ts,d.ts.map}",
"./packages/lit-starter-ts/test/"
],
"dependencies": [
"./packages/lit:build:ts:types"
]
Expand Down Expand Up @@ -138,14 +146,22 @@
"command": "cd packages/lit-starter-js && npm test",
"dependencies": [
"./packages/lit:build"
]
],
"files": [
"./packages/lit-starter-js/web-test-runner.config.js"
],
"output": []
},
"test:lit-starter-ts": {
"command": "cd packages/lit-starter-ts && npm test",
"dependencies": [
"build:lit-starter-ts",
"./packages/lit:build"
]
],
"files": [
"./packages/lit-starter-ts/web-test-runner.config.js"
],
"output": []
},
"test:windows": {
"dependencies": [
Expand Down
5 changes: 4 additions & 1 deletion packages/benchmarks/package.json
Expand Up @@ -39,12 +39,15 @@
"command": "tsc --build --pretty",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"lit-element/**/*.ts",
"reactive-element/**/*.ts",
"lit-html/**/*.ts",
"utils/**/*.ts"
"utils/**/*.ts",
"!**/*.d.ts"
],
"output": [
"tsconfig.tsbuildinfo",
"lit-element/**/*.{js,js.map,d.ts,d.ts.map}",
"reactive-element/**/*.{js,js.map,d.ts,d.ts.map}",
"lit-html/**/*.{js,js.map,d.ts,d.ts.map}",
Expand Down
3 changes: 2 additions & 1 deletion packages/labs/gen-wrapper-vue/test-output/package.json
Expand Up @@ -42,7 +42,8 @@
"installSelf"
],
"files": [
"src/**/*.ts, src/**/*.vue",
"src/**/*.ts",
"src/**/*.vue",
"tsconfig.json"
],
"command": "vue-tsc --noEmit && vite build",
Expand Down
4 changes: 4 additions & 0 deletions packages/labs/test-projects/test-element-a/package.json
Expand Up @@ -36,6 +36,10 @@
"build"
],
"command": "npm pack",
"files": [
"package.json",
"element-a.{js,js.map,d.ts,d.ts.map}"
],
"output": [
"*.tgz"
]
Expand Down

0 comments on commit 3cb2e52

Please sign in to comment.