Skip to content

Commit 5724a7b

Browse files
committed
build: Include web-types in package.json
1 parent ee75ac3 commit 5724a7b

File tree

2 files changed

+12
-42
lines changed

2 files changed

+12
-42
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
custom-elements.json
2+
web-types.json
23
node_modules
34
package-lock.json
45
*.js

package.json

+11-42
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"**/*.js.map",
3535
"**/*.d.ts",
3636
"**/*.scss",
37+
"web-types.json",
3738
"!css-to-ts.js",
3839
"!web-test-runner.config.js",
3940
"!**/test/**",
@@ -75,18 +76,12 @@
7576
},
7677
"pnpm": {
7778
"peerDependencyRules": {
78-
"ignoreMissing": [
79-
"css-loader",
80-
"sass-loader",
81-
"style-loader"
82-
]
79+
"ignoreMissing": ["css-loader", "sass-loader", "style-loader"]
8380
}
8481
},
8582
"wireit": {
8683
"build": {
87-
"dependencies": [
88-
"build:ts"
89-
]
84+
"dependencies": ["build:ts", "update-docs"]
9085
},
9186
"build:ts": {
9287
"command": "tsc --pretty",
@@ -111,45 +106,21 @@
111106
"!scripts/"
112107
],
113108
"clean": "if-file-deleted",
114-
"dependencies": [
115-
"build:css-to-ts"
116-
]
109+
"dependencies": ["build:css-to-ts"]
117110
},
118111
"build:css-to-ts": {
119112
"command": "find . \\( -path ./.wireit -o -path ./node_modules -o -path ./catalog \\) -prune -o -name '*.css' -print | xargs node css-to-ts.js",
120-
"files": [
121-
"css-to-ts.js",
122-
"!scripts/",
123-
"!node_modules"
124-
],
125-
"output": [
126-
"**/*.css.ts",
127-
"!catalog",
128-
"!scripts/"
129-
],
130-
"dependencies": [
131-
"build:sass"
132-
]
113+
"files": ["css-to-ts.js", "!scripts/", "!node_modules"],
114+
"output": ["**/*.css.ts", "!catalog", "!scripts/"],
115+
"dependencies": ["build:sass"]
133116
},
134117
"build:sass": {
135118
"command": "sass --style=compressed --load-path=node_modules --load-path=node_modules/sass-true/sass $(ls -d */ | grep -vE 'node_modules|catalog')",
136-
"files": [
137-
"**/*.scss",
138-
"!catalog",
139-
"!scripts/",
140-
"!node_modules"
141-
],
142-
"output": [
143-
"**/*.css",
144-
"**/*.css.map",
145-
"!catalog",
146-
"!scripts/"
147-
]
119+
"files": ["**/*.scss", "!catalog", "!scripts/", "!node_modules"],
120+
"output": ["**/*.css", "**/*.css.map", "!catalog", "!scripts/"]
148121
},
149122
"build:catalog": {
150-
"dependencies": [
151-
"./catalog:build:prod"
152-
]
123+
"dependencies": ["./catalog:build:prod"]
153124
},
154125
"build:analyzer": {
155126
"command": "tsc -b scripts/tsconfig.json --pretty",
@@ -180,9 +151,7 @@
180151
"!node_modules"
181152
],
182153
"output": [],
183-
"dependencies": [
184-
"build:analyzer"
185-
]
154+
"dependencies": ["build:analyzer"]
186155
}
187156
},
188157
"web-types": "./web-types.json"

0 commit comments

Comments
 (0)