@getmonoceros/workbench 1.6.1 → 1.6.2
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/dist/bin.js +4 -1
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2850,8 +2850,11 @@ async function assertSafeTargetDir(targetDir, expectedOrigin) {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
return;
|
|
2852
2852
|
}
|
|
2853
|
+
if (entries.length === 1 && entries[0] === ".monoceros") {
|
|
2854
|
+
return;
|
|
2855
|
+
}
|
|
2853
2856
|
throw new Error(
|
|
2854
|
-
`Refusing to materialize into non-empty directory ${targetDir} (no Monoceros state.json found). Delete the directory before re-running.`
|
|
2857
|
+
`Refusing to materialize into non-empty directory ${targetDir} (no Monoceros state.json found, and the directory has files we don't recognise). Delete the directory before re-running.`
|
|
2855
2858
|
);
|
|
2856
2859
|
}
|
|
2857
2860
|
function warnOnDeprecatedFeatureRefs(containerFeatures, globalConfig, logger) {
|