diff --git a/.changeset/ten-dots-explain.md b/.changeset/ten-dots-explain.md new file mode 100644 index 00000000..535e3bac --- /dev/null +++ b/.changeset/ten-dots-explain.md @@ -0,0 +1,6 @@ +--- +'@bedframe/core': patch +'@bedframe/cli': patch +--- + +fix devtools setPage urls diff --git a/packages/cli/public/stubs/pages/styled-components/devtools/devtools.tsx b/packages/cli/public/stubs/pages/styled-components/devtools/devtools.tsx index 4b43d591..233b99aa 100644 --- a/packages/cli/public/stubs/pages/styled-components/devtools/devtools.tsx +++ b/packages/cli/public/stubs/pages/styled-components/devtools/devtools.tsx @@ -8,13 +8,13 @@ import { GlobalStyles } from '@/styles' chrome.devtools.panels.create( 'Bedframe (Panel)', 'assets/icons/icon-128x128.png', - 'src/pages/devtools/index.html', + 'pages/devtools/index.html', ) chrome.devtools.panels.elements.createSidebarPane( 'Bedframe (Side Panel)', function (panel) { - panel.setPage('src/pages/devtools/panel.html') + panel.setPage('pages/devtools/panel.html') panel.setHeight('8ex') panel.setObject({ data: 'Some data to show', diff --git a/packages/cli/public/stubs/pages/tailwind/devtools/devtools.tsx b/packages/cli/public/stubs/pages/tailwind/devtools/devtools.tsx index 90b33171..67416d7b 100644 --- a/packages/cli/public/stubs/pages/tailwind/devtools/devtools.tsx +++ b/packages/cli/public/stubs/pages/tailwind/devtools/devtools.tsx @@ -8,13 +8,13 @@ import '@/styles/style.css' chrome.devtools.panels.create( 'Bedframe (Panel)', 'assets/icons/icon-128x128.png', - 'src/pages/devtools/index.html', + 'pages/devtools/index.html', ) chrome.devtools.panels.elements.createSidebarPane( 'Bedframe (Side Panel)', function (panel) { - panel.setPage('src/pages/devtools/panel.html') + panel.setPage('pages/devtools/panel.html') panel.setHeight('8ex') panel.setObject({ data: 'Some data to show', diff --git a/packages/cli/src/lib/make/utils/write-package-json.ts b/packages/cli/src/lib/make/utils/write-package-json.ts index a68ebba4..0a5aafe7 100644 --- a/packages/cli/src/lib/make/utils/write-package-json.ts +++ b/packages/cli/src/lib/make/utils/write-package-json.ts @@ -101,8 +101,8 @@ ${isStyle.styledComponents ? `"styled-components": "^6.0.7"` : ''} } }, "devDependencies": { - "@bedframe/cli": "^0.0.70", - "@bedframe/core": "^0.0.35", + "@bedframe/cli": "^0.0.71", + "@bedframe/core": "^0.0.36", ${ changesets ? `"@changesets/cli": "^2.26.2", diff --git a/packages/core/src/lib/get-fonts.ts b/packages/core/src/lib/get-fonts.ts index fc67e446..95c90bc0 100644 --- a/packages/core/src/lib/get-fonts.ts +++ b/packages/core/src/lib/get-fonts.ts @@ -24,6 +24,7 @@ export function getFonts(fonts: FontFamily[]) { name: f.name, local: f.local, src: f.src, + // TO diddly DO: allow for f.transform here. user can have custom transform transform(font) { if (!fontWeights) return null if (font.basename in fontWeights) {