silgi 0.24.10 → 0.24.12

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.24.10";
4
+ const version = "0.24.12";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -1805,15 +1805,6 @@ async function prepareCoreFile(data, frameworkContext, silgi) {
1805
1805
  import: [],
1806
1806
  from: "./vfs"
1807
1807
  },
1808
- "silgi/runtime": {
1809
- import: [
1810
- {
1811
- name: "mergeDeep",
1812
- key: "mergeDeep"
1813
- }
1814
- ],
1815
- from: "silgi/runtime"
1816
- },
1817
1808
  "scan.ts": {
1818
1809
  import: [
1819
1810
  {
@@ -1885,6 +1876,7 @@ async function prepareCoreFile(data, frameworkContext, silgi) {
1885
1876
  plugins.push(pluginImportName);
1886
1877
  }
1887
1878
  const importsContent = [
1879
+ 'import deepmerge from "@fastify/deepmerge"',
1888
1880
  ...Object.entries(importItems).map(([_name, { from, import: imports }]) => {
1889
1881
  if (silgi.options.typescript.removeFileExtension) {
1890
1882
  from = from.replace(/\.(js|ts|mjs|cjs|jsx|tsx)$/, "");
@@ -1896,6 +1888,8 @@ async function prepareCoreFile(data, frameworkContext, silgi) {
1896
1888
  ""
1897
1889
  ];
1898
1890
  const importData = [
1891
+ "",
1892
+ "const mergeDeep = deepmerge({all: true})",
1899
1893
  "",
1900
1894
  "export async function buildSilgi(framework: FrameworkContext, moduleOptions?: Partial<SilgiRuntimeOptions>,buildOptions?: Partial<SilgiOptions>) {",
1901
1895
  "",
@@ -1,2 +1,3 @@
1
1
  import type { Silgi } from 'silgi/types';
2
2
  export declare function addNitroApp(silgiCtx?: Silgi): Promise<void>;
3
+ export default addNitroApp;
@@ -51,3 +51,4 @@ export async function addNitroApp(silgiCtx = useSilgi()) {
51
51
  }
52
52
  }));
53
53
  }
54
+ export default addNitroApp;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.24.10",
4
+ "version": "0.24.12",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -16,6 +16,7 @@
16
16
  "./presets": "./dist/presets/index.mjs",
17
17
  "./runtime": "./dist/runtime/index.mjs",
18
18
  "./runtime/internal": "./dist/runtime/internal/index.mjs",
19
+ "./runtime/internal/*": "./dist/runtime/internal/*.mjs",
19
20
  "./runtime/meta": "./lib/runtime-meta.mjs"
20
21
  },
21
22
  "main": "./dist/index.mjs",