Skip to content

Commit 150506e

Browse files
committed
Bug: Fix dist built with old package paths
1 parent 92df562 commit 150506e

4 files changed

Lines changed: 26 additions & 26 deletions

File tree

client-shim.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @license Copyright 2020 Google LLC (BSD-3-Clause) */
2-
/** Bundled JS generated from "@astrojs/lit/client-shim.js" */
2+
/** Bundled JS generated from "@semantic-org/astro-lit/client-shim.js" */
33
var N = Object.defineProperty;
44
var i = (t, n) => () => (t && (n = t((t = 0))), n);
55
var b = (t, n) => {

dist/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,39 @@ function getViteConfiguration() {
33
return {
44
optimizeDeps: {
55
include: [
6-
"@astrojs/lit/dist/client.js",
7-
"@astrojs/lit/client-shim.js",
8-
"@astrojs/lit/hydration-support.js",
6+
"@semantic-org/astro-lit/dist/client.js",
7+
"@semantic-org/astro-lit/client-shim.js",
8+
"@semantic-org/astro-lit/hydration-support.js",
99
"@webcomponents/template-shadowroot/template-shadowroot.js",
1010
"@lit-labs/ssr-client/lit-element-hydrate-support.js"
1111
],
12-
exclude: ["@astrojs/lit/server.js"]
12+
exclude: ["@semantic-org/astro-lit/server.js"]
1313
},
1414
ssr: {
15-
external: ["lit-element", "@lit-labs/ssr", "@astrojs/lit", "lit/decorators.js"]
15+
external: ["lit-element", "@lit-labs/ssr", "@semantic-org/astro-lit", "lit/decorators.js"]
1616
}
1717
};
1818
}
1919
function getContainerRenderer() {
2020
return {
21-
name: "@astrojs/lit",
22-
serverEntrypoint: "@astrojs/lit/server.js"
21+
name: "@semantic-org/astro-lit",
22+
serverEntrypoint: "@semantic-org/astro-lit/server.js"
2323
};
2424
}
2525
function index_default() {
2626
return {
27-
name: "@astrojs/lit",
27+
name: "@semantic-org/astro-lit",
2828
hooks: {
2929
"astro:config:setup": ({ updateConfig, addRenderer, injectScript }) => {
3030
injectScript(
3131
"head-inline",
3232
readFileSync(new URL("../client-shim.min.js", import.meta.url), { encoding: "utf-8" })
3333
);
34-
injectScript("before-hydration", `import '@astrojs/lit/hydration-support.js';`);
34+
injectScript("before-hydration", `import '@semantic-org/astro-lit/hydration-support.js';`);
3535
addRenderer({
36-
name: "@astrojs/lit",
37-
serverEntrypoint: "@astrojs/lit/server.js",
38-
clientEntrypoint: "@astrojs/lit/dist/client.js"
36+
name: "@semantic-org/astro-lit",
37+
serverEntrypoint: "@semantic-org/astro-lit/server.js",
38+
clientEntrypoint: "@semantic-org/astro-lit/dist/client.js"
3939
});
4040
updateConfig({
4141
vite: getViteConfiguration()

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function renderToStaticMarkup(Component, props, slots) {
118118
}
119119

120120
export default {
121-
name: '@astrojs/lit',
121+
name: '@semantic-org/astro-lit',
122122
check,
123123
renderToStaticMarkup,
124124
};

src/index.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ function getViteConfiguration() {
55
return {
66
optimizeDeps: {
77
include: [
8-
'@astrojs/lit/dist/client.js',
9-
'@astrojs/lit/client-shim.js',
10-
'@astrojs/lit/hydration-support.js',
8+
'@semantic-org/astro-lit/dist/client.js',
9+
'@semantic-org/astro-lit/client-shim.js',
10+
'@semantic-org/astro-lit/hydration-support.js',
1111
'@webcomponents/template-shadowroot/template-shadowroot.js',
1212
'@lit-labs/ssr-client/lit-element-hydrate-support.js',
1313
],
14-
exclude: ['@astrojs/lit/server.js'],
14+
exclude: ['@semantic-org/astro-lit/server.js'],
1515
},
1616
ssr: {
17-
external: ['lit-element', '@lit-labs/ssr', '@astrojs/lit', 'lit/decorators.js'],
17+
external: ['lit-element', '@lit-labs/ssr', '@semantic-org/astro-lit', 'lit/decorators.js'],
1818
},
1919
};
2020
}
2121

2222
export function getContainerRenderer(): ContainerRenderer {
2323
return {
24-
name: '@astrojs/lit',
25-
serverEntrypoint: '@astrojs/lit/server.js',
24+
name: '@semantic-org/astro-lit',
25+
serverEntrypoint: '@semantic-org/astro-lit/server.js',
2626
};
2727
}
2828

2929
export default function (): AstroIntegration {
3030
return {
31-
name: '@astrojs/lit',
31+
name: '@semantic-org/astro-lit',
3232
hooks: {
3333
'astro:config:setup': ({ updateConfig, addRenderer, injectScript }) => {
3434
// Inject the necessary polyfills on every page (inlined for speed).
@@ -37,12 +37,12 @@ export default function (): AstroIntegration {
3737
readFileSync(new URL('../client-shim.min.js', import.meta.url), { encoding: 'utf-8' })
3838
);
3939
// Inject the hydration code, before a component is hydrated.
40-
injectScript('before-hydration', `import '@astrojs/lit/hydration-support.js';`);
40+
injectScript('before-hydration', `import '@semantic-org/astro-lit/hydration-support.js';`);
4141
// Add the lit renderer so that Astro can understand lit components.
4242
addRenderer({
43-
name: '@astrojs/lit',
44-
serverEntrypoint: '@astrojs/lit/server.js',
45-
clientEntrypoint: '@astrojs/lit/dist/client.js',
43+
name: '@semantic-org/astro-lit',
44+
serverEntrypoint: '@semantic-org/astro-lit/server.js',
45+
clientEntrypoint: '@semantic-org/astro-lit/dist/client.js',
4646
});
4747
// Update the vite configuration.
4848
updateConfig({

0 commit comments

Comments
 (0)