@cap-js/cds-types 0.6.2 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/cds-types",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Type definitions for main packages of CAP, like `@sap/cds`",
5
5
  "repository": "github:cap-js/cds-types",
6
6
  "homepage": "https://cap.cloud.sap/",
@@ -24,5 +24,10 @@ try {
24
24
  // symlink did not exist, continue
25
25
  }
26
26
 
27
- // 'junction' is needed to make it work on windows, others ignore
28
- fs.symlinkSync(rel, target, 'junction')
27
+ try {
28
+ // 'junction' is needed to make it work on windows, others ignore
29
+ fs.symlinkSync(rel, target, 'junction')
30
+ } catch (e) {
31
+ if (e.code !== 'EEXIST') throw e
32
+ // else: symlink exists (the previous unlink hasn't worked), ignore
33
+ }