scribe-cms 0.0.4 → 0.0.5

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/dist/runtime.cjs CHANGED
@@ -79,6 +79,7 @@ function resolveConfig(input, baseDir) {
79
79
  const projectRoot = path3__default.default.resolve(process.cwd(), raw.rootDir);
80
80
  const contentRoot = path3__default.default.resolve(projectRoot, raw.contentDir ?? "content");
81
81
  const storePath = path3__default.default.resolve(projectRoot, raw.store ?? ".scribe/store.sqlite");
82
+ const assetsPath = raw.assetsDir ? path3__default.default.resolve(projectRoot, raw.assetsDir) : void 0;
82
83
  const seenIds = /* @__PURE__ */ new Set();
83
84
  const types = raw.types.map((type) => {
84
85
  if (seenIds.has(type.id)) {
@@ -99,6 +100,7 @@ function resolveConfig(input, baseDir) {
99
100
  const config = {
100
101
  rootDir: contentRoot,
101
102
  storePath,
103
+ assetsPath,
102
104
  locales: [...raw.locales],
103
105
  defaultLocale,
104
106
  localePresets: raw.localePresets,