silgi 0.17.4 → 0.17.6

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,4 +1,4 @@
1
- const version = "0.17.4";
1
+ const version = "0.17.6";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1484,7 +1484,10 @@ async function createSilgiCLI(config = {}, opts = {}) {
1484
1484
  if (silgi.options.imports) {
1485
1485
  silgi.options.imports.dirs ??= [];
1486
1486
  silgi.options.imports.dirs.push(
1487
- join(silgi.options.serverDir, "**/*")
1487
+ ...[
1488
+ join(relativeWithDot(silgi.options.serverDir, silgi.options.output.dir), "**/*"),
1489
+ `!${join(relativeWithDot(silgi.options.serverDir, silgi.options.output.dir), "runtime", "**/*")}`
1490
+ ]
1488
1491
  );
1489
1492
  silgi.options.imports.presets.push({
1490
1493
  from: "silgi/types",
@@ -1,4 +1,4 @@
1
- const version = "0.17.4";
1
+ const version = "0.17.6";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.17.4";
1
+ const version = "0.17.6";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -12,6 +12,19 @@ const nitro = defineSilgiPreset(
12
12
  envOptions: {
13
13
  prefix: "NITRO_"
14
14
  },
15
+ imports: {
16
+ exclude: [
17
+ /[/\\]data[/\\]/,
18
+ /[/\\]assets[/\\]/,
19
+ /[/\\]public[/\\]/,
20
+ /[/\\]static[/\\]/,
21
+ /[/\\]api[/\\]/,
22
+ /[/\\]routers[/\\]/,
23
+ /[/\\]modules[/\\]/,
24
+ /[/\\]generated[/\\]/
25
+ ],
26
+ include: []
27
+ },
15
28
  storages: ["data", "/assets"]
16
29
  },
17
30
  {
@@ -12,6 +12,22 @@ const npmPackage = defineSilgiPreset(
12
12
  modules: ["./src"],
13
13
  typescript: {
14
14
  removeFileExtension: true
15
+ },
16
+ imports: {
17
+ exclude: [
18
+ /[/\\]data[/\\]/,
19
+ /[/\\]assets[/\\]/,
20
+ /[/\\]public[/\\]/,
21
+ /[/\\]static[/\\]/,
22
+ /[/\\]api[/\\]/,
23
+ /[/\\]routers[/\\]/,
24
+ /[/\\]modules[/\\]/,
25
+ /[/\\]generated[/\\]/,
26
+ /[/\\]runtime[/\\]/,
27
+ // Changed to properly exclude all runtime directory content
28
+ /[/\\]types[/\\]/,
29
+ /[/\\]src[/\\][^/\\]+\.ts$/
30
+ ]
15
31
  }
16
32
  },
17
33
  {
@@ -13,6 +13,18 @@ const nuxt = defineSilgiPreset(
13
13
  prefix: "NITRO_",
14
14
  altPrefix: "NUXT_"
15
15
  },
16
+ imports: {
17
+ exclude: [
18
+ /[/\\]data[/\\]/,
19
+ /[/\\]assets[/\\]/,
20
+ /[/\\]public[/\\]/,
21
+ /[/\\]static[/\\]/,
22
+ /[/\\]api[/\\]/,
23
+ /[/\\]routers[/\\]/,
24
+ /[/\\]modules[/\\]/,
25
+ /[/\\]generated[/\\]/
26
+ ]
27
+ },
16
28
  storages: ["data", "/assets"]
17
29
  },
18
30
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.17.4",
4
+ "version": "0.17.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {