primate 0.20.3 → 0.20.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app.js +3 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primate",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "Expressive, minimal and extensible web framework",
5
5
  "homepage": "https://primatejs.com",
6
6
  "bugs": "https://github.com/primatejs/primate/issues",
package/src/app.js CHANGED
@@ -144,11 +144,9 @@ export default async (config, root, log) => {
144
144
  key.replace(".", module),
145
145
  value.import?.replace(".", `./${module}`) ?? value.default.replace(".", `./${module}`),
146
146
  ]));
147
- await Promise.all(Object.values(exports).map(async name => app.publish({
148
- code: await Path.resolve().join(library, name).text(),
149
- src: new Path(root, build.modules, name),
150
- type: "module",
151
- })));
147
+ const dependency = Path.resolve().join(...path);
148
+ const to = new Path(paths.client, build.modules, dependency.name);
149
+ await dependency.file.copy(to);
152
150
  this.importmaps = {
153
151
  ...valmap(exports, value => new Path(root, build.modules, value).path),
154
152
  ...this.importmaps};