@ms-cloudpack/esm-stub-utilities 0.1.0 → 0.2.0

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.json CHANGED
@@ -2,7 +2,67 @@
2
2
  "name": "@ms-cloudpack/esm-stub-utilities",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 08 Jun 2022 20:06:34 GMT",
5
+ "date": "Sat, 06 Aug 2022 08:15:24 GMT",
6
+ "tag": "@ms-cloudpack/esm-stub-utilities_v0.2.0",
7
+ "version": "0.2.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "dzearing@microsoft.com",
12
+ "package": "@ms-cloudpack/esm-stub-utilities",
13
+ "commit": "70b5e51ee1e2bbb80d6b6fef1dbbf819d3634a0b",
14
+ "comment": "Fixing stub generation to emit to a physical location on macs, rather than symlink."
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 02 Aug 2022 19:53:54 GMT",
21
+ "tag": "@ms-cloudpack/esm-stub-utilities_v0.1.2",
22
+ "version": "0.1.2",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "renovate@whitesourcesoftware.com",
27
+ "package": "@ms-cloudpack/esm-stub-utilities",
28
+ "commit": "dc1ecdc793357827f70515d00830ecd35491b76c",
29
+ "comment": "Update dependency @types/jsdom to v16.2.15"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Thu, 28 Jul 2022 18:39:20 GMT",
36
+ "tag": "@ms-cloudpack/esm-stub-utilities_v0.1.1",
37
+ "version": "0.1.1",
38
+ "comments": {
39
+ "patch": [
40
+ {
41
+ "author": "email not defined",
42
+ "package": "@ms-cloudpack/esm-stub-utilities",
43
+ "commit": "ddec754013e36611f3f6b25e1146cb214402de28",
44
+ "comment": "Update dependency @types/jsdom-global to v3.0.3"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Wed, 29 Jun 2022 02:45:18 GMT",
51
+ "tag": "@ms-cloudpack/esm-stub-utilities_v0.1.0",
52
+ "version": "0.1.0",
53
+ "comments": {
54
+ "none": [
55
+ {
56
+ "author": "email not defined",
57
+ "package": "@ms-cloudpack/esm-stub-utilities",
58
+ "commit": "94790eee5ac4401529c3f1215168ffb3725dfd61",
59
+ "comment": "Pin devDependencies"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Wed, 08 Jun 2022 20:07:00 GMT",
6
66
  "tag": "@ms-cloudpack/esm-stub-utilities_v0.1.0",
7
67
  "version": "0.1.0",
8
68
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - @ms-cloudpack/esm-stub-utilities
2
2
 
3
- This log was last generated on Wed, 08 Jun 2022 20:06:34 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 06 Aug 2022 08:15:24 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.2.0
8
+
9
+ Sat, 06 Aug 2022 08:15:24 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Fixing stub generation to emit to a physical location on macs, rather than symlink. (dzearing@microsoft.com)
14
+
15
+ ## 0.1.2
16
+
17
+ Tue, 02 Aug 2022 19:53:54 GMT
18
+
19
+ ### Patches
20
+
21
+ - Update dependency @types/jsdom to v16.2.15 (renovate@whitesourcesoftware.com)
22
+
23
+ ## 0.1.1
24
+
25
+ Thu, 28 Jul 2022 18:39:20 GMT
26
+
27
+ ### Patches
28
+
29
+ - Update dependency @types/jsdom-global to v3.0.3 (email not defined)
30
+
7
31
  ## 0.1.0
8
32
 
9
- Wed, 08 Jun 2022 20:06:34 GMT
33
+ Wed, 08 Jun 2022 20:07:00 GMT
10
34
 
11
35
  ### Minor changes
12
36
 
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.25.0"
8
+ "packageVersion": "7.29.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -3,7 +3,7 @@ import os from 'os';
3
3
  import path from 'path';
4
4
  import { createESMStub } from './createESMStub.js';
5
5
  import { slash } from '@ms-cloudpack/path-utilities';
6
- const { writeFile } = fs.promises;
6
+ const { writeFile, realpath } = fs.promises;
7
7
  /**
8
8
  * Generates an ESM stub for CommonJS modules.
9
9
  */
@@ -11,7 +11,7 @@ export async function writeESMStub(entryPath, stubPath) {
11
11
  // Ensure forward slashes
12
12
  entryPath = slash(entryPath);
13
13
  // Ensure stub path is provided.
14
- stubPath ?? (stubPath = path.join(os.tmpdir(), `esm-stub-${Date.now()}.js`));
14
+ stubPath ?? (stubPath = path.join(await realpath(os.tmpdir()), `esm-stub-${Date.now()}.js`));
15
15
  // If we have a package export, we can generate an ESM stub.
16
16
  const esmStub = createESMStub(entryPath, stubPath);
17
17
  // Write the stub to disk.
@@ -1 +1 @@
1
- {"version":3,"file":"writeESMStub.js","sourceRoot":"","sources":["../src/writeESMStub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,SAAiB,EAAE,QAAiB;IACrE,yBAAyB;IACzB,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IAE7B,gCAAgC;IAChC,QAAQ,KAAR,QAAQ,GAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,YAAY,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,EAAC;IAEjE,4DAA4D;IAC5D,MAAM,OAAO,GAAG,aAAa,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEnD,0BAA0B;IAC1B,MAAM,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEnC,OAAO,QAAQ,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"writeESMStub.js","sourceRoot":"","sources":["../src/writeESMStub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,SAAiB,EAAE,QAAiB;IACrE,yBAAyB;IACzB,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IAE7B,gCAAgC;IAChC,QAAQ,KAAR,QAAQ,GAAK,IAAI,CAAC,IAAI,CAAC,MAAM,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,YAAY,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,EAAC;IAEjF,4DAA4D;IAC5D,MAAM,OAAO,GAAG,aAAa,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEnD,0BAA0B;IAC1B,MAAM,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEnC,OAAO,QAAQ,CAAC;AAClB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/esm-stub-utilities",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Generates ESM stubs for CommonJS entry files.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,11 +23,11 @@
23
23
  "devDependencies": {
24
24
  "@ms-cloudpack/eslint-config-base": "*",
25
25
  "@ms-cloudpack/scripts": "*",
26
- "@types/atob": "^2.1.2",
27
- "@types/btoa": "^1.2.3",
28
- "@types/jsdom-global": "^3.0.2",
29
- "@types/jsdom": "^16.2.14",
30
- "@types/regenerator-runtime": "^0.13.1",
26
+ "@types/atob": "2.1.2",
27
+ "@types/btoa": "1.2.3",
28
+ "@types/jsdom-global": "3.0.3",
29
+ "@types/jsdom": "16.2.15",
30
+ "@types/regenerator-runtime": "0.13.1",
31
31
  "react-dom": "17.0.2",
32
32
  "react": "17.0.2"
33
33
  },