alinea 0.9.5 → 0.9.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.
@@ -2,7 +2,7 @@
2
2
  var package_default = {
3
3
  bin: "./dist/cli.js",
4
4
  name: "alinea",
5
- version: "0.9.5",
5
+ version: "0.9.6",
6
6
  license: "MIT",
7
7
  type: "module",
8
8
  scripts: {
package/dist/cli/Serve.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunks/chunk-UJJSVROY.js";
4
4
  import {
5
5
  package_default
6
- } from "../chunks/chunk-K2WCFXNE.js";
6
+ } from "../chunks/chunk-UUJJ7TAP.js";
7
7
  import "../chunks/chunk-U5RRZUYZ.js";
8
8
 
9
9
  // src/cli/Serve.ts
package/dist/cli/bin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunks/chunk-K2WCFXNE.js";
3
+ } from "../chunks/chunk-UUJJ7TAP.js";
4
4
  import "../chunks/chunk-U5RRZUYZ.js";
5
5
 
6
6
  // node_modules/mri/lib/index.mjs
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../../chunks/chunk-K2WCFXNE.js";
3
+ } from "../../chunks/chunk-UUJJ7TAP.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __toESM
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunks/chunk-IKINPSS5.js";
4
4
  import {
5
5
  package_default
6
- } from "../../chunks/chunk-K2WCFXNE.js";
6
+ } from "../../chunks/chunk-UUJJ7TAP.js";
7
7
  import "../../chunks/chunk-U5RRZUYZ.js";
8
8
 
9
9
  // src/cloud/server/CloudAuthServer.ts
@@ -329,7 +329,8 @@ async function createEntry(config, typeName, partial = { title: "Entry" }, paren
329
329
  data: entryData,
330
330
  searchableText: Type.searchableText(type, entryData)
331
331
  };
332
- const parentPaths = parent?.childrenDir.split("/").filter(Boolean) ?? [];
332
+ const isI18n = Boolean(Root.data(config.workspaces[workspace][root]).i18n);
333
+ const parentPaths = parent?.childrenDir.split("/").filter(Boolean).slice(isI18n ? 1 : 0) ?? [];
333
334
  const filePath = entryFilepath(config, details, parentPaths);
334
335
  const childrenDir = entryChildrenDir(config, details, parentPaths);
335
336
  const urlMeta = {
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunks/chunk-7YXWNKGS.js";
4
4
  import {
5
5
  package_default
6
- } from "../../chunks/chunk-K2WCFXNE.js";
6
+ } from "../../chunks/chunk-UUJJ7TAP.js";
7
7
  import {
8
8
  connect
9
9
  } from "../../chunks/chunk-FMLWF6TZ.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bin": "./dist/cli.js",
3
3
  "name": "alinea",
4
- "version": "0.9.5",
4
+ "version": "0.9.6",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "scripts": {