Skip to content

Commit

Permalink
chore: use pnpm patch in /react instead of patch-package
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby committed Aug 28, 2024
1 parent 2d76ebd commit 73478cb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 35 deletions.
10 changes: 7 additions & 3 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
"format": "pnpm dlx prettier --check 'src/**/*.{js,jsx,ts,tsx}'",
"format-fix": "pnpm dlx prettier --write './src/**/*.{js,jsx,ts,tsx}'",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"postinstall": "patch-package"
"build-storybook": "storybook build"
},
"eslintConfig": {
"extends": [
Expand Down Expand Up @@ -130,5 +129,10 @@
"typescript": "^5.4.5",
"react-refresh": "0.11.0"
},
"proxy": "http://localhost:3081"
"proxy": "http://localhost:3081",
"pnpm": {
"patchedDependencies": {
"@cloudscape-design/[email protected]": "patches/@[email protected]"
}
}
}
60 changes: 30 additions & 30 deletions ...cape-design+board-components+3.0.60.patch → [email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/@cloudscape-design/board-components/board-item/interfaces.d.ts b/node_modules/@cloudscape-design/board-components/board-item/interfaces.d.ts
diff --git a/board-item/interfaces.d.ts b/board-item/interfaces.d.ts
index 7451c23..2f0221c 100644
--- a/node_modules/@cloudscape-design/board-components/board-item/interfaces.d.ts
+++ b/node_modules/@cloudscape-design/board-components/board-item/interfaces.d.ts
--- a/board-item/interfaces.d.ts
+++ b/board-item/interfaces.d.ts
@@ -31,6 +31,7 @@ export interface BoardItemProps {
* * `resizeHandleAriaDescription` (string, optional) - the ARIA description for the resize handle.
*/
Expand All @@ -10,10 +10,10 @@ index 7451c23..2f0221c 100644
}
export declare namespace BoardItemProps {
interface I18nStrings {
diff --git a/node_modules/@cloudscape-design/board-components/board-item/internal.js b/node_modules/@cloudscape-design/board-components/board-item/internal.js
diff --git a/board-item/internal.js b/board-item/internal.js
index 9ce96ef..cd0a89e 100644
--- a/node_modules/@cloudscape-design/board-components/board-item/internal.js
+++ b/node_modules/@cloudscape-design/board-components/board-item/internal.js
--- a/board-item/internal.js
+++ b/board-item/internal.js
@@ -11,12 +11,12 @@ import ResizeHandle from "../internal/resize-handle";
import ScreenreaderOnly from "../internal/screenreader-only";
import WidgetContainerHeader from "./header";
Expand All @@ -30,10 +30,10 @@ index 9ce96ef..cd0a89e 100644
}
//# sourceMappingURL=internal.js.map
\ No newline at end of file
diff --git a/node_modules/@cloudscape-design/board-components/board-item/styles.css.js b/node_modules/@cloudscape-design/board-components/board-item/styles.css.js
diff --git a/board-item/styles.css.js b/board-item/styles.css.js
index 1dcaf7c..f1d982c 100644
--- a/node_modules/@cloudscape-design/board-components/board-item/styles.css.js
+++ b/node_modules/@cloudscape-design/board-components/board-item/styles.css.js
--- a/board-item/styles.css.js
+++ b/board-item/styles.css.js
@@ -2,15 +2,15 @@
import './styles.scoped.css';
export default {
Expand All @@ -55,10 +55,10 @@ index 1dcaf7c..f1d982c 100644
};

\ No newline at end of file
diff --git a/node_modules/@cloudscape-design/board-components/board-item/styles.selectors.js b/node_modules/@cloudscape-design/board-components/board-item/styles.selectors.js
diff --git a/board-item/styles.selectors.js b/board-item/styles.selectors.js
index 2acfd3b..beebd8d 100644
--- a/node_modules/@cloudscape-design/board-components/board-item/styles.selectors.js
+++ b/node_modules/@cloudscape-design/board-components/board-item/styles.selectors.js
--- a/board-item/styles.selectors.js
+++ b/board-item/styles.selectors.js
@@ -3,15 +3,15 @@
Object.defineProperty(exports, "__esModule", { value: true });
module.exports.default = {
Expand All @@ -80,10 +80,10 @@ index 2acfd3b..beebd8d 100644
};

\ No newline at end of file
diff --git a/node_modules/@cloudscape-design/board-components/board/interfaces.d.ts b/node_modules/@cloudscape-design/board-components/board/interfaces.d.ts
diff --git a/board/interfaces.d.ts b/board/interfaces.d.ts
index 8833051..4c47c4d 100644
--- a/node_modules/@cloudscape-design/board-components/board/interfaces.d.ts
+++ b/node_modules/@cloudscape-design/board-components/board/interfaces.d.ts
--- a/board/interfaces.d.ts
+++ b/board/interfaces.d.ts
@@ -65,6 +65,7 @@ export interface BoardProps<D = DataFallbackType> {
* When items are loading the slot can be used to render the loading indicator.
*/
Expand All @@ -92,10 +92,10 @@ index 8833051..4c47c4d 100644
}
export declare namespace BoardProps {
type Item<D = DataFallbackType> = BoardItemDefinition<D>;
diff --git a/node_modules/@cloudscape-design/board-components/board/internal.js b/node_modules/@cloudscape-design/board-components/board/internal.js
diff --git a/board/internal.js b/board/internal.js
index 39c479f..6e4e4a9 100644
--- a/node_modules/@cloudscape-design/board-components/board/internal.js
+++ b/node_modules/@cloudscape-design/board-components/board/internal.js
--- a/board/internal.js
+++ b/board/internal.js
@@ -22,7 +22,7 @@ import { selectTransitionRows, useTransition } from "./transition";
import { announcementToString } from "./utils/announcements";
import { createTransforms } from "./utils/create-transforms";
Expand All @@ -114,10 +114,10 @@ index 39c479f..6e4e4a9 100644
var _a;
const layoutShift = (_a = transition === null || transition === void 0 ? void 0 : transition.layoutShift) !== null && _a !== void 0 ? _a : removeTransition === null || removeTransition === void 0 ? void 0 : removeTransition.layoutShift;
const transforms = layoutShift ? createTransforms(itemsLayout, layoutShift.moves, gridContext) : {};
diff --git a/node_modules/@cloudscape-design/board-components/board/styles.css.js b/node_modules/@cloudscape-design/board-components/board/styles.css.js
diff --git a/board/styles.css.js b/board/styles.css.js
index 0cad188..6acfdb2 100644
--- a/node_modules/@cloudscape-design/board-components/board/styles.css.js
+++ b/node_modules/@cloudscape-design/board-components/board/styles.css.js
--- a/board/styles.css.js
+++ b/board/styles.css.js
@@ -1,9 +1,9 @@

import './styles.scoped.css';
Expand All @@ -131,10 +131,10 @@ index 0cad188..6acfdb2 100644
"root": "awsui_root_1h7dk_inx8o_12",
"empty": "awsui_empty_1h7dk_inx8o_16"
};
diff --git a/node_modules/@cloudscape-design/board-components/board/styles.selectors.js b/node_modules/@cloudscape-design/board-components/board/styles.selectors.js
diff --git a/board/styles.selectors.js b/board/styles.selectors.js
index be32160..eea1a96 100644
--- a/node_modules/@cloudscape-design/board-components/board/styles.selectors.js
+++ b/node_modules/@cloudscape-design/board-components/board/styles.selectors.js
--- a/board/styles.selectors.js
+++ b/board/styles.selectors.js
@@ -2,9 +2,9 @@
// es-module interop with Babel and Typescript
Object.defineProperty(exports, "__esModule", { value: true });
Expand All @@ -148,10 +148,10 @@ index be32160..eea1a96 100644
"root": "awsui_root_1h7dk_inx8o_12",
"empty": "awsui_empty_1h7dk_inx8o_16"
};
diff --git a/node_modules/@cloudscape-design/board-components/internal/grid/styles.css.js b/node_modules/@cloudscape-design/board-components/internal/grid/styles.css.js
diff --git a/internal/grid/styles.css.js b/internal/grid/styles.css.js
index ec202e1..0c0ed57 100644
--- a/node_modules/@cloudscape-design/board-components/internal/grid/styles.css.js
+++ b/node_modules/@cloudscape-design/board-components/internal/grid/styles.css.js
--- a/internal/grid/styles.css.js
+++ b/internal/grid/styles.css.js
@@ -7,6 +7,5 @@
"columns-2": "awsui_columns-2_1hw7z_1ywbc_17",
"columns-4": "awsui_columns-4_1hw7z_1ywbc_21",
Expand All @@ -161,10 +161,10 @@ index ec202e1..0c0ed57 100644
};
-
\ No newline at end of file
diff --git a/node_modules/@cloudscape-design/board-components/internal/grid/styles.selectors.js b/node_modules/@cloudscape-design/board-components/internal/grid/styles.selectors.js
diff --git a/internal/grid/styles.selectors.js b/internal/grid/styles.selectors.js
index e9bd94a..cf7bcb1 100644
--- a/node_modules/@cloudscape-design/board-components/internal/grid/styles.selectors.js
+++ b/node_modules/@cloudscape-design/board-components/internal/grid/styles.selectors.js
--- a/internal/grid/styles.selectors.js
+++ b/internal/grid/styles.selectors.js
@@ -8,6 +8,6 @@
"columns-2": "awsui_columns-2_1hw7z_1ywbc_17",
"columns-4": "awsui_columns-4_1hw7z_1ywbc_21",
Expand Down
9 changes: 7 additions & 2 deletions react/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73478cb

Please sign in to comment.