Skip to content

Commit 65ce85d

Browse files
[Changesets] Create versioned packages for publishing (#37)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6d1b5dc commit 65ce85d

File tree

5 files changed

+88
-86
lines changed

5 files changed

+88
-86
lines changed

.changeset/evil-foxes-decide.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/varlock-website/astro.config.mjs

Lines changed: 79 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const envSpecGrammar = JSON.parse(fs.readFileSync('../vscode-plugin/language/env
1515

1616
// https://astro.build/config
1717
export default defineConfig({
18-
site: "https://varlock.dev",
18+
site: 'https://varlock.dev',
1919
vite: {
2020
resolve: {
2121
alias: {
@@ -27,93 +27,94 @@ export default defineConfig({
2727
fonts: [
2828
{
2929
provider: fontProviders.google(),
30-
name: "Pixelify Sans",
31-
cssVariable: "--font-pixelify"
30+
name: 'Pixelify Sans',
31+
cssVariable: '--font-pixelify',
3232
},
3333
{
3434
provider: fontProviders.google(),
35-
name: "JetBrains Mono",
36-
cssVariable: "--font-jetbrains-mono"
35+
name: 'JetBrains Mono',
36+
cssVariable: '--font-jetbrains-mono',
3737
},
3838
],
3939
},
4040
image: {
41-
service: passthroughImageService()
41+
service: passthroughImageService(),
4242
},
43-
integrations: [starlight({
44-
title: 'varlock',
45-
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/dmno-dev/varlock' }],
46-
components: {
47-
Head: '@/components/CustomHead.astro',
48-
},
49-
customCss: ['@/styles/global.css'],
50-
plugins: [starlightLlmsTxt()],
51-
head: [
43+
integrations: [
44+
starlight({
45+
title: 'varlock',
46+
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/dmno-dev/varlock' }],
47+
components: {
48+
Head: '@/components/CustomHead.astro',
49+
},
50+
customCss: ['@/styles/global.css'],
51+
plugins: [starlightLlmsTxt()],
52+
head: [
5253
// add sitemap to head for discoverability
53-
{ tag: 'link', attrs: { rel: 'sitemap', href: '/sitemap-index.xml'}},
54-
{ tag: 'script', content: `!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init bs ws ge fs capture De Ai $s register register_once register_for_session unregister unregister_for_session Is getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey canRenderSurveyAsync identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty xs Ss createPersonProfile Es gs opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing ys debug ks getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
54+
{ tag: 'link', attrs: { rel: 'sitemap', href: '/sitemap-index.xml' } },
55+
{
56+
tag: 'script', content: `!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init bs ws ge fs capture De Ai $s register register_once register_for_session unregister unregister_for_session Is getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey canRenderSurveyAsync identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty xs Ss createPersonProfile Es gs opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing ys debug ks getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
5557
if (window.location.host.includes('varlock.dev')) posthog.init('phc_bfzH97VIta8yQa8HrsgmitqS6rTydjMISs0m8aqJTnq', {
5658
api_host: 'https://ph.varlock.dev',
57-
})`
58-
},
59-
// noindex for all pages, TODO remove before launch
60-
{ tag: 'meta', attrs: { name: 'robots', content: 'noindex' } },
61-
],
62-
sidebar: [
63-
{
64-
label: 'Getting Started',
65-
items: [
66-
{ label: 'Installation', slug: 'getting-started/installation' },
67-
],
68-
},
69-
{
70-
label: 'Guides',
71-
items: [
72-
{ label: 'Schema', slug: 'guides/schema' },
73-
{ label: 'Integration', slug: 'guides/integration' },
74-
{ label: 'Secrets', slug: 'guides/secrets' },
75-
{ label: 'Cursor', slug: 'guides/cursor', badge: 'New' },
76-
{ label: 'Telemetry', slug: 'guides/telemetry' },
77-
],
59+
})`,
60+
},
61+
// noindex for all pages, TODO remove before launch
62+
{ tag: 'meta', attrs: { name: 'robots', content: 'noindex' } },
63+
],
64+
sidebar: [
65+
{
66+
label: 'Getting Started',
67+
items: [{ label: 'Installation', slug: 'getting-started/installation' }],
68+
},
69+
{
70+
label: 'Guides',
71+
items: [
72+
{ label: 'Schema', slug: 'guides/schema' },
73+
{ label: 'Integration', slug: 'guides/integration' },
74+
{ label: 'Secrets', slug: 'guides/secrets' },
75+
{ label: 'Cursor', slug: 'guides/cursor', badge: 'New' },
76+
{ label: 'Telemetry', slug: 'guides/telemetry' },
77+
],
78+
},
79+
{
80+
label: 'Reference',
81+
items: [
82+
{ label: 'CLI', slug: 'reference/cli-commands' },
83+
{ label: 'Root decorators', slug: 'reference/root-decorators' },
84+
{ label: 'Item decorators', slug: 'reference/item-decorators' },
85+
{ label: 'Functions', slug: 'reference/functions' },
86+
],
87+
},
88+
{
89+
label: '@env-spec',
90+
items: [
91+
{ label: 'Overview', slug: 'env-spec/overview' },
92+
{ label: 'VS Code extension', slug: 'env-spec/vs-code-ext' },
93+
],
94+
},
95+
],
96+
expressiveCode: {
97+
shiki: {
98+
langs: [
99+
{
100+
name: 'env-spec',
101+
scopeName: 'source.env-spec',
102+
extensions: ['.env-spec'],
103+
...envSpecGrammar,
104+
},
105+
],
106+
},
78107
},
79-
{
80-
label: 'Reference',
81-
items: [
82-
{ label: 'CLI', slug: 'reference/cli-commands' },
83-
{ label: 'Root decorators', slug: 'reference/root-decorators' },
84-
{ label: 'Item decorators', slug: 'reference/item-decorators' },
85-
{ label: 'Functions', slug: 'reference/functions' },
86-
],
87-
},
88-
{
89-
label: '@env-spec',
90-
items: [
91-
{ label: 'Overview', slug: 'env-spec/overview' },
92-
{ label: 'VS Code extension', slug: 'env-spec/vs-code-ext' },
93-
],
94-
},
95-
],
96-
expressiveCode: {
97-
shiki: {
98-
langs: [
99-
{
100-
name: 'env-spec',
101-
scopeName: 'source.env-spec',
102-
extensions: ['.env-spec'],
103-
...envSpecGrammar,
104-
},
105-
]
106-
}
107-
}
108-
}),
109-
mdx(),
110-
vue(),
111-
sitemap(),
112-
robotsTxt(),
113-
partytown({
108+
}),
109+
mdx(),
110+
vue(),
111+
sitemap(),
112+
robotsTxt(),
113+
partytown({
114114
// Example: Add dataLayer.push as a forwarding-event.
115-
config: {
116-
forward: ['dataLayer.push'],
117-
},
118-
})],
119-
});
115+
config: {
116+
forward: ['dataLayer.push'],
117+
},
118+
}),
119+
],
120+
});

packages/varlock-website/src/pages/open-graph/[...route].ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export const { getStaticPaths, GET } = OGImageRoute({
1313
// In this case it's `route`, because the file is named `[...route].ts`.
1414
param: 'route',
1515

16-
pages: pages,
16+
pages,
1717

1818
getImageOptions: (path, page) => ({
1919
title: page.title,
2020
description: page.description,
2121
}),
22-
});
22+
});

packages/varlock/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# varlock
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- [`6d1b5dc`](https://github.com/dmno-dev/varlock/commit/6d1b5dc397d5024f52b07a2449959f2696683239) Thanks [@theoephraim](https://github.com/theoephraim)! - remove top level await, to fix SEA build
8+
39
## 0.0.1
410

511
### Patch Changes

packages/varlock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "varlock",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)