Skip to content

Commit 9e53a7a

Browse files
authored
Update README.md language (#14126)
This just changes the language in README.md to be more aligned with our other messaging around Polaris Web Components, prior to a final push to npm. It also fixes a jest configuration issue that is breaking our testing config in main.
1 parent bb99c5a commit 9e53a7a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This repository will remain available for historical purposes, but it will not r
1212
## Why Web Components?
1313

1414
Polaris Web Components provide a more **technology-agnostic foundation**.
15-
They are framework-independent and can be used in **React, Vue, Next.js, plain JavaScript, or even server-rendered stacks like Rails or PHP**. This enables more Shopify App developers across more platforms to use Polaris.
15+
They work with every framework as well as plain JavaScript and server-rendered sites, enabling more Shopify App developers across more platforms to use Polaris.
1616

1717

1818
## About this repo

polaris.shopify.com/jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ module.exports = {
99
escapeString: true,
1010
printBasicPrototype: true,
1111
},
12+
modulePathIgnorePatterns: ['<rootDir>/.next/'],
13+
testPathIgnorePatterns: ['<rootDir>/.next/'],
1214
};

polaris.shopify.com/scripts/get-props/src/get-props.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export function normalizePath(path: string): string {
2323
let normalizedPath = path;
2424
if (normalizedPath.startsWith('.')) {
2525
normalizedPath = normalizedPath.replace(/^\.{1,2}\//, '');
26+
} else if (normalizedPath.includes('polaris.shopify.com')) {
27+
// Extract everything from 'polaris.shopify.com' onwards
28+
const match = normalizedPath.match(/polaris\.shopify\.com.*$/);
29+
normalizedPath = match ? match[0] : normalizedPath;
2630
} else if (normalizedPath.includes('/polaris/')) {
2731
normalizedPath = normalizedPath.split(/\/(polaris\/)+/).at(-1)!;
2832
} else if (normalizedPath.startsWith('/')) {

0 commit comments

Comments
 (0)