diff --git a/typescript/renderers/react/package.json b/typescript/renderers/react/package.json index 50165fb018..f599f681c8 100644 --- a/typescript/renderers/react/package.json +++ b/typescript/renderers/react/package.json @@ -64,15 +64,12 @@ "types": "./dist/styles/index.d.cts", "default": "./dist/styles/index.cjs" } - }, - "./styles/structural.css": "./dist/structural.css" + } }, "files": [ "dist" ], - "sideEffects": [ - "*.css" - ], + "sideEffects": false, "scripts": { "prepublishOnly": "node -e \"if(!process.cwd().endsWith('dist')) { console.error('Error: This package must be published from the dist/ directory. Run `yarn build` then `cd dist && yarn npm publish`'); process.exit(1); }\"", "publish:package": "yarn build && node ../../scripts/prepare-publish.mjs && cd dist && touch yarn.lock && yarn install && yarn npm publish --access public", diff --git a/typescript/renderers/react/src/global.d.ts b/typescript/renderers/react/src/global.d.ts deleted file mode 100644 index 940f7d979b..0000000000 --- a/typescript/renderers/react/src/global.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Declares typings for CSS Modules (*.module.css) files. - * This allows the TypeScript compiler (tsc) to resolve CSS class imports as a - * read-only dictionary of string mappings. - */ -declare module '*.module.css' { - const classes: {readonly [key: string]: string}; - export default classes; -} diff --git a/typescript/renderers/react/tsconfig.json b/typescript/renderers/react/tsconfig.json index b0d1d56656..a9a06cf396 100644 --- a/typescript/renderers/react/tsconfig.json +++ b/typescript/renderers/react/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "types": ["vitest/globals", "@testing-library/jest-dom", "vite/client"], + "types": ["vitest/globals", "@testing-library/jest-dom"], "target": "ES2022", "lib": ["ES2022", "DOM", "DOM.Iterable"], "module": "ESNext",