@idomatic/core 1.1.64 → 1.1.66

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/lib/core.js CHANGED
@@ -25,8 +25,10 @@ export async function processFile(filePath, config) {
25
25
  const resolvedPath = resolveFrom(process.cwd(), parserPackage);
26
26
  const resolvedURL = pathToFileURL(resolvedPath).href;
27
27
  const parser = await import(resolvedURL);
28
- await parser.default(filePath, config);
29
- console.log(`✅ Updated: ${filePath}`);
28
+ const wasUpdated = await parser.default(filePath, config);
29
+ if (wasUpdated) {
30
+ console.log(`✅ Updated: ${filePath}`);
31
+ }
30
32
  } catch (err) {
31
33
  console.error(
32
34
  `❌ Failed to load parser "${parserPackage}" for ${filePath}`
package/lib/scan.js CHANGED
@@ -16,7 +16,6 @@ async function runInitScan() {
16
16
  for (const file of files) {
17
17
  try {
18
18
  await processFile(file, config);
19
- console.log(`✅ Updated: ${file}`);
20
19
  } catch (e) {
21
20
  console.warn(`❌ Error in: ${file}`);
22
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idomatic/core",
3
- "version": "1.1.64",
3
+ "version": "1.1.66",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "idomatic": "./bin/index.js"