domma-cms 0.6.10 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domma-cms",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
4
4
  "description": "File-based CMS powered by Domma and Fastify. Run npx domma-cms my-site to create a new project.",
5
5
  "type": "module",
6
6
  "main": "server/server.js",
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
package/scripts/build.js CHANGED
@@ -19,8 +19,9 @@ const COPY_AS_IS = [
19
19
  'config',
20
20
  'scripts',
21
21
  'package.json',
22
+ 'public/js/package.json',
22
23
  'README.md',
23
- 'CLAUDE.md',
24
+ 'CLAUDE.md',
24
25
  'LICENSE',
25
26
  '.npmignore',
26
27
  ];
@@ -124,7 +125,9 @@ async function build() {
124
125
  for (const item of COPY_AS_IS) {
125
126
  const src = join(ROOT, item);
126
127
  if (existsSync(src)) {
127
- cpSync(src, join(OUT, item), {recursive: true});
128
+ const dest = join(OUT, item);
129
+ mkdirSync(dirname(dest), {recursive: true});
130
+ cpSync(src, dest, {recursive: true});
128
131
  }
129
132
  }
130
133