Skip to content

Commit 0e4b80e

Browse files
asynclizcopybara-github
authored andcommitted
fix: remove internal *-styles.js generated files
Use `*-styles.cssresult.js` instead if importing internal component stylesheets. Public stylesheets have backwards compatibility files to import from the previous `*-styles.js` path. PiperOrigin-RevId: 897173006
1 parent bbf1058 commit 0e4b80e

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ node_modules
44
!commitlint.config.js
55
*.css
66
*.cssresult.ts
7-
*-styles.ts
8-
!adopt-styles.ts
97
tokens/versions/**/*-meta.scss
108
*.map
119
*.d.ts

package.json

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@
9292
"tsconfig.json",
9393
"**/*.ts",
9494
"!**/*.d.ts",
95-
"!**/*-styles.ts",
96-
"**/adopt-styles.ts",
95+
"!**/*.cssresult.ts",
9796
"!catalog/",
9897
"!scripts/"
9998
],
@@ -114,12 +113,6 @@
114113
]
115114
},
116115
"build:css-to-ts": {
117-
"dependencies": [
118-
"build:css-to-ts:cssresult",
119-
"build:css-to-ts:styles"
120-
]
121-
},
122-
"build:css-to-ts:cssresult": {
123116
"command": "find . \\( -path ./.wireit -o -path ./node_modules -o -path ./catalog \\) -prune -o -name '*.css' -print | xargs -L1 node scripts/css-to-ts.js --suffix=.cssresult",
124117
"files": [
125118
"**/*.css",
@@ -134,22 +127,6 @@
134127
"build:sass"
135128
]
136129
},
137-
"build:css-to-ts:styles": {
138-
"command": "find . \\( -path ./.wireit -o -path ./node_modules -o -path ./catalog \\) -prune -o -name '*-styles.css' -print | xargs -L1 node scripts/css-to-ts.js",
139-
"files": [
140-
"**/*-styles.css",
141-
"!catalog/"
142-
],
143-
"output": [
144-
"**/*-styles.ts",
145-
"!**/adopt-styles.ts",
146-
"!catalog/"
147-
],
148-
"dependencies": [
149-
"build:scripts",
150-
"build:sass"
151-
]
152-
},
153130
"build:sass": {
154131
"command": "sass --style=compressed --load-path=node_modules --load-path=node_modules/sass-true/sass $(ls -d */ | grep -vE 'node_modules|catalog')",
155132
"files": [
@@ -216,7 +193,7 @@
216193
"docs/components/*.md",
217194
"**/*.ts",
218195
"!**/*.d.ts",
219-
"!**/*-styles.ts",
196+
"!**/*.cssresult.ts",
220197
"!catalog/",
221198
"!scripts/",
222199
"scripts/analyzer/update-docs.js"

typography/md-typescale-styles.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* @license
3+
* Copyright 2026 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
export * from './md-typescale-styles.cssresult.js';

0 commit comments

Comments
 (0)