primate 0.31.6 → 0.31.8

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": "primate",
3
- "version": "0.31.6",
3
+ "version": "0.31.8",
4
4
  "description": "Polymorphic development platform",
5
5
  "homepage": "https://primatejs.com",
6
6
  "bugs": "https://github.com/primatejs/primate/issues",
package/src/app.js CHANGED
@@ -114,7 +114,7 @@ export default async (log, root, config) => {
114
114
  const target = await target_base.join(filename.debase(directory));
115
115
  await target.directory.create();
116
116
  regexs.some(regex => regex.test(debased))
117
- ?? target.write(mapper(await path.text()));
117
+ && target.write(mapper(await path.text()));
118
118
  }));
119
119
  },
120
120
  async compile(component) {
@@ -38,7 +38,10 @@ const post = async app => {
38
38
  // copy additional subdirectories to build/server
39
39
  await copy_includes(app, location.server);
40
40
 
41
- const components = await app.path.components.collect();
41
+ // copy components to build/components
42
+ await app.stage(app.path.components, FS.File.join(location.components));
43
+
44
+ const components = await app.runpath(location.components).collect();
42
45
 
43
46
  // from the build directory, compile to server and client
44
47
  await Promise.all(components.map(component => app.compile(component)));