Skip to content

Commit

Permalink
Refactor virtual modules and cleanup deprecated content helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Dec 11, 2024
1 parent 55e3a72 commit e47ef18
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 19 deletions.
8 changes: 0 additions & 8 deletions packages/studiocms/env.d.ts

This file was deleted.

14 changes: 7 additions & 7 deletions packages/studiocms/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "studiocms",
"version": "0.1.0-beta.7",
"description": "A dedicated CMS for Astro DB. Built from the ground up by the Astro community.",
"description": "A dedicated CMS for Astro and Astro DB. Built from the ground up by the Astro community.",
"author": {
"name": "Adam Matthiesen | Jacob Jenkins | Paul Valladares",
"url": "https://studiocms.dev"
Expand All @@ -17,17 +17,17 @@
],
"license": "MIT",
"keywords": [
"astro",
"cms",
"astrocms",
"astrodb",
"astrolicious",
"astrostudio",
"astro-integration",
"astrostudiocms",
"studiocms",
"astro-studio",
"astro-studiocms",
"cms",
"studiocms",
"withastro"
"astro",
"withastro",
"astro-integration"
],
"homepage": "https://studiocms.dev",
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/studiocms/src/updateCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as semver from 'semver';
* @param packageName - The name of the package.
* @returns A promise that resolves to the latest version of the package.
*/
async function fetchlatestVersion(packageName: string): Promise<string> {
async function fetchLatestVersion(packageName: string): Promise<string> {
const { version } = await packageJson(packageName.toLowerCase());
return version;
}
Expand All @@ -22,7 +22,7 @@ export const updateCheck = defineUtility('astro:server:start')(
const logger = params.logger.fork(`${name}:update-check`);

try {
const latestVersion = await fetchlatestVersion(name);
const latestVersion = await fetchLatestVersion(name);

const comparison = semver.compare(currentVersion, latestVersion);

Expand Down
2 changes: 2 additions & 0 deletions packages/studiocms_auth/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="astro/client" />

interface ImportMetaEnv {
readonly PROD: boolean;
readonly BASE_URL: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/studiocms_auth/src/utils/validImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const validImages = [
light: studiocmsCurvesLight,
dark: studiocmsCurvesDark,
},
{
name: 'custom',
{
name: 'custom',
format: 'web',
light: null,
dark: null,
Expand Down

0 comments on commit e47ef18

Please sign in to comment.