@getik-public/cli 1.0.1 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v1.0.2
2
+ Fixed on windows. When loading dynamic node module on windows absolute path must pe preceded by `file:\\`
3
+
4
+
1
5
  ### v1.0.1
2
6
  Fixed typo: missing input options in mobile-build function
3
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getik-public/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,7 +18,10 @@ async function applyPatchersForExternalNpmPackages() {
18
18
  let displayClosingSeparatorLine = false;
19
19
  for (const filename of patchesInFolder) {
20
20
  if (filename.indexOf(filenameEndsWith) === filename.length - filenameEndsWith.length) {
21
- const pathToFile = path.join(process.cwd(), patchesFolderName, filename);
21
+ let pathToFile = path.join(process.cwd(), patchesFolderName, filename);
22
+ if (process.platform === "win32") {
23
+ pathToFile = path.join('file:\\', pathToFile);
24
+ }
22
25
  const patcherImport = await import(pathToFile);
23
26
  const patcher = patcherImport.default;
24
27
  console.log('----------------------------------------------------------------------------------------------------------------------');