@levino/shipyard-base 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levino/shipyard-base",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "exports": {
@@ -12,7 +12,7 @@
12
12
  "./components/*": "./astro/components/*"
13
13
  },
14
14
  "peerDependencies": {
15
- "astro": "^5",
15
+ "astro": "^5.7",
16
16
  "daisyui": "^4",
17
17
  "tailwindcss": "^3",
18
18
  "@tailwindcss/typography": "^0.5.10"
package/src/index.ts CHANGED
@@ -21,11 +21,6 @@ export default (config: Config): AstroIntegration => ({
21
21
  name: 'shipyard',
22
22
  hooks: {
23
23
  'astro:config:setup': ({ updateConfig, config: { i18n } }) => {
24
- if (!i18n) {
25
- throw new Error(
26
- 'Shipyard cannot be used without i18n. Please set at least one locale.',
27
- )
28
- }
29
24
  updateConfig({
30
25
  vite: {
31
26
  plugins: [
@@ -31,5 +31,5 @@ export interface Config {
31
31
  }
32
32
 
33
33
  export interface FinalConfig extends Config {
34
- i18n: NonNullable<AstroConfig['i18n']>
34
+ i18n?: AstroConfig['i18n']
35
35
  }