From e1f8a63ba2c35f6a2062ea7329115026e85eb0a7 Mon Sep 17 00:00:00 2001 From: Dale Baldwin Date: Wed, 1 Nov 2023 11:02:30 +1100 Subject: [PATCH 1/3] fix: updated toolkit to use .module.scss pathing --- package.json | 2 +- .../LinkPopover/{LinkPopover.scss => LinkPopover.module.scss} | 0 src/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx | 2 +- types.d.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/plugins/LinkManager/components/LinkPopover/{LinkPopover.scss => LinkPopover.module.scss} (100%) diff --git a/package.json b/package.json index cf7ccf1..5f52915 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "scripts": { "build": "tsc --build && yarn copy-files", "clean": "tsc --build --clean", - "copy-files": "copyfiles -u 1 src/**/*.scss dist/", + "copy-files": "copyfiles -u 1 src/**/*.module.scss dist/", "lint": "yarn lint:prettier --write && yarn lint:eslint --fix", "lint-ci": "yarn lint:prettier --check && yarn lint:eslint --max-warnings=0", "lint:eslint": "eslint . --ext .ts,.tsx", diff --git a/src/plugins/LinkManager/components/LinkPopover/LinkPopover.scss b/src/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss similarity index 100% rename from src/plugins/LinkManager/components/LinkPopover/LinkPopover.scss rename to src/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss diff --git a/src/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx b/src/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx index e6fa793..d87c7c4 100644 --- a/src/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +++ b/src/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx @@ -8,7 +8,7 @@ import React from "react" import editIcon from "@kaizen/component-library/icons/edit.icon.svg" import externalLinkIcon from "@kaizen/component-library/icons/external-link.icon.svg" import removeLinkIcon from "@kaizen/component-library/icons/remove-link.icon.svg" -import styles from "./LinkPopover.scss" +import styles from "./LinkPopover.module.scss" export interface LinkPopoverProps { href?: string diff --git a/types.d.ts b/types.d.ts index d795e84..7336902 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,4 +1,4 @@ -declare module "*.scss" { +declare module "*.module.scss" { const classes: { [key: string]: string } export default classes } From ae54c90a87eb40a29c6dcdd4c9704b18e66cf3da Mon Sep 17 00:00:00 2001 From: Dale Baldwin Date: Wed, 1 Nov 2023 11:06:16 +1100 Subject: [PATCH 2/3] chore: adding changeset --- .changeset/ten-jeans-think.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/ten-jeans-think.md diff --git a/.changeset/ten-jeans-think.md b/.changeset/ten-jeans-think.md new file mode 100644 index 0000000..0aa7e30 --- /dev/null +++ b/.changeset/ten-jeans-think.md @@ -0,0 +1,5 @@ +--- +"@cultureamp/rich-text-toolkit": patch +--- + +Update to use module in scss file extension From 460afb1999a5eb51727e1836db9678db24d0bebb Mon Sep 17 00:00:00 2001 From: Dale Baldwin Date: Wed, 1 Nov 2023 11:13:36 +1100 Subject: [PATCH 3/3] fix: reverting change as safer to leave them as is --- package.json | 2 +- types.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5f52915..cf7ccf1 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "scripts": { "build": "tsc --build && yarn copy-files", "clean": "tsc --build --clean", - "copy-files": "copyfiles -u 1 src/**/*.module.scss dist/", + "copy-files": "copyfiles -u 1 src/**/*.scss dist/", "lint": "yarn lint:prettier --write && yarn lint:eslint --fix", "lint-ci": "yarn lint:prettier --check && yarn lint:eslint --max-warnings=0", "lint:eslint": "eslint . --ext .ts,.tsx", diff --git a/types.d.ts b/types.d.ts index 7336902..d795e84 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,4 +1,4 @@ -declare module "*.module.scss" { +declare module "*.scss" { const classes: { [key: string]: string } export default classes }