@inkandswitch/patchwork-pkg-base 0.0.2 → 0.0.3

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/init.js +0 -2
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -5,14 +5,12 @@ const examples = [
5
5
  ];
6
6
 
7
7
  export default async function init(repo, folder) {
8
- console.log(`init: running ${examples.length} example(s) from`, import.meta.url);
9
8
  for (const path of examples) {
10
9
  try {
11
10
  const mod = await import(new URL(path, import.meta.url).href);
12
11
  const result = await mod.default(repo);
13
12
  const links = (Array.isArray(result) ? result : [result]).filter(Boolean);
14
13
  if (links.length) folder.change((doc) => { doc.docs.push(...links); });
15
- console.log(`init: ${path} created`, links.map((l) => `${l.name} (${l.type})`));
16
14
  } catch (err) {
17
15
  console.warn(`init: example ${path} failed`, err);
18
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkandswitch/patchwork-pkg-base",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "description": "Base packages for the Patchwork system",
6
6
  "repository": {