@ms-cloudpack/package-utilities 0.11.0 → 0.12.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,22 @@
2
2
  "name": "@ms-cloudpack/package-utilities",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 21 Sep 2022 08:14:52 GMT",
5
+ "date": "Thu, 22 Sep 2022 08:14:56 GMT",
6
+ "tag": "@ms-cloudpack/package-utilities_v0.12.0",
7
+ "version": "0.12.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "dzearing@microsoft.com",
12
+ "package": "@ms-cloudpack/package-utilities",
13
+ "commit": "5ba5810615e506deaa0621b12efbdc27356484fa",
14
+ "comment": "Adding generateExportsMap api."
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 21 Sep 2022 08:15:19 GMT",
6
21
  "tag": "@ms-cloudpack/package-utilities_v0.11.0",
7
22
  "version": "0.11.0",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @ms-cloudpack/package-utilities
2
2
 
3
- This log was last generated on Wed, 21 Sep 2022 08:14:52 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 22 Sep 2022 08:14:56 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.12.0
8
+
9
+ Thu, 22 Sep 2022 08:14:56 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Adding generateExportsMap api. (dzearing@microsoft.com)
14
+
7
15
  ## 0.11.0
8
16
 
9
- Wed, 21 Sep 2022 08:14:52 GMT
17
+ Wed, 21 Sep 2022 08:15:19 GMT
10
18
 
11
19
  ### Minor changes
12
20
 
@@ -0,0 +1,9 @@
1
+ import type { PackageJson } from 'type-fest';
2
+ /**
3
+ * Given a package path, generates an export map for the package.
4
+ */
5
+ export declare function generateExportsMap(packagePath: string): Promise<PackageJson.Exports>;
6
+ /**
7
+ * Given an exports map and details about an import path, adds the entry.
8
+ */
9
+ export declare function addExportsMapEntry(exports: PackageJson.Exports, importPath: string | undefined, packagePath: string, entryPath: string | undefined, typesPath?: string): Promise<void>;
@@ -0,0 +1,80 @@
1
+ import path from 'path';
2
+ import { isFile, slash } from '@ms-cloudpack/path-utilities';
3
+ import { PackageDefinitions } from './PackageDefinitions.js';
4
+ import { isExternalPackage } from './isExternalPackage.js';
5
+ import { resolveImportFromPackagePath } from './resolveImportFromPackagePath.js';
6
+ /**
7
+ * Given a package path, generates an export map for the package.
8
+ */
9
+ export async function generateExportsMap(packagePath) {
10
+ const definition = await PackageDefinitions.getInstance().get(packagePath);
11
+ if (!definition) {
12
+ throw new Error(`Package definition not found for ${packagePath}`);
13
+ }
14
+ const { main, module, browser } = definition;
15
+ const hasRootIndexJs = isFile(path.join(packagePath, 'index.js'));
16
+ const exports = definition.exports || {};
17
+ const types = definition.types || definition.typings;
18
+ if (!(main || module || browser || hasRootIndexJs)) {
19
+ return exports;
20
+ }
21
+ if (hasRootIndexJs) {
22
+ await addExportsMapEntry(exports, undefined, packagePath, 'index.js', types);
23
+ }
24
+ await addExportsMapEntry(exports, undefined, packagePath, main, types);
25
+ await addExportsMapEntry(exports, undefined, packagePath, module, types);
26
+ if (browser && typeof browser === 'string') {
27
+ await addExportsMapEntry(exports, undefined, packagePath, browser, types);
28
+ }
29
+ return exports;
30
+ }
31
+ /**
32
+ * Given an exports map and details about an import path, adds the entry.
33
+ */
34
+ export async function addExportsMapEntry(exports, importPath, packagePath, entryPath, typesPath) {
35
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
36
+ const packageExports = exports;
37
+ if (!entryPath) {
38
+ return;
39
+ }
40
+ entryPath = safeRelativePath(entryPath);
41
+ const intermediatePath = await resolveImportFromPackagePath(packagePath, importPath || entryPath);
42
+ if (!intermediatePath) {
43
+ return;
44
+ }
45
+ const isInternal = !isExternalPackage(packagePath);
46
+ const sourcePath = isInternal
47
+ ? await resolveImportFromPackagePath(packagePath, importPath, { preferSource: true })
48
+ : undefined;
49
+ const potentialTypesPath = path.extname(intermediatePath) === '.js' && intermediatePath.replace('.js', '.d.ts');
50
+ const isTypeScriptSource = sourcePath && ['.ts', '.tsx', '.mts', '.cts'].indexOf(path.extname(sourcePath)) >= 0;
51
+ if (!typesPath &&
52
+ potentialTypesPath &&
53
+ ((isInternal && isTypeScriptSource) || (!isInternal && isFile(path.join(packagePath, potentialTypesPath))))) {
54
+ typesPath = potentialTypesPath;
55
+ }
56
+ packageExports[importPath || '.'] = {
57
+ ...(typesPath && { types: safeRelativePath(typesPath) }),
58
+ default: intermediatePath,
59
+ ...(sourcePath && sourcePath !== intermediatePath && { source: sourcePath }),
60
+ };
61
+ }
62
+ /**
63
+ * Ensures the give relative path starts with a ./
64
+ */
65
+ function safeRelativePath(originalPath) {
66
+ if (!originalPath) {
67
+ return '.';
68
+ }
69
+ // Don't modify absolute paths.
70
+ if (path.isAbsolute(originalPath)) {
71
+ return originalPath;
72
+ }
73
+ // Ensure we have the right slashes.
74
+ originalPath = slash(originalPath);
75
+ if (originalPath.startsWith('./')) {
76
+ return originalPath;
77
+ }
78
+ return `./${originalPath}`;
79
+ }
80
+ //# sourceMappingURL=generateExportsMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateExportsMap.js","sourceRoot":"","sources":["../src/generateExportsMap.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,WAAmB;IAC1D,MAAM,UAAU,GA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,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;KAC7E,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,YAAgC;IACxD,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,GAAG,CAAC;KACZ;IAED,+BAA+B;IAC/B,IAAI,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;QACjC,OAAO,YAAY,CAAC;KACrB;IAED,oCAAoC;IACpC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;IAEnC,IAAI,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QACjC,OAAO,YAAY,CAAC;KACrB;IAED,OAAO,KAAK,YAAY,EAAE,CAAC;AAC7B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,100 @@
1
+ import { describe, it, expect } from '@jest/globals';
2
+ import { generateExportsMap } from './generateExportsMap.js';
3
+ import { testScenariosPath } from './testPaths.js';
4
+ import path from 'path';
5
+ const testGenerateExportsPath = path.join(testScenariosPath, 'test-generate-exports');
6
+ describe('generateExportsMap', () => {
7
+ it('can return a blank import map for something with nothing to export', async () => {
8
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'no-exports'))).toEqual({});
9
+ });
10
+ it('can generate an exports map for a package with an implicit index.js file', async () => {
11
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'implicit-export'))).toMatchInlineSnapshot(`
12
+ {
13
+ ".": {
14
+ "default": "./index.js",
15
+ },
16
+ }
17
+ `);
18
+ });
19
+ it('can generate an exports map for a package with a main export as esm', async () => {
20
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'main-export-esm'))).toMatchInlineSnapshot(`
21
+ {
22
+ ".": {
23
+ "default": "./main.js",
24
+ },
25
+ }
26
+ `);
27
+ });
28
+ it('can generate an exports map for a package with a main export as cjs', async () => {
29
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'main-export-cjs'))).toMatchInlineSnapshot(`
30
+ {
31
+ ".": {
32
+ "default": "./main.js",
33
+ },
34
+ }
35
+ `);
36
+ });
37
+ it('can generate an exports map for a package with a main export as cjs and types', async () => {
38
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'main-export-cjs-types')))
39
+ .toMatchInlineSnapshot(`
40
+ {
41
+ ".": {
42
+ "default": "./main.js",
43
+ "types": "./index.d.ts",
44
+ },
45
+ }
46
+ `);
47
+ });
48
+ it('can generate an exports map for a package with a module export', async () => {
49
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'module-export'))).toMatchInlineSnapshot(`
50
+ {
51
+ ".": {
52
+ "default": "./module.js",
53
+ },
54
+ }
55
+ `);
56
+ });
57
+ it('can generate an exports map for a package with a browser export', async () => {
58
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'browser-export'))).toMatchInlineSnapshot(`
59
+ {
60
+ ".": {
61
+ "default": "./browser.js",
62
+ },
63
+ }
64
+ `);
65
+ });
66
+ it('can generate an exports map for a package with a type/source exports', async () => {
67
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'sources-export'))).toMatchInlineSnapshot(`
68
+ {
69
+ ".": {
70
+ "default": "./lib/index.js",
71
+ "source": "./src/index.tsx",
72
+ "types": "./lib/index.d.ts",
73
+ },
74
+ }
75
+ `);
76
+ });
77
+ it('can generate an exports map for an internal unbuilt package', async () => {
78
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'main-export-unbuilt'))).toMatchInlineSnapshot(`
79
+ {
80
+ ".": {
81
+ "default": "./lib/index.js",
82
+ "source": "./src/index.ts",
83
+ "types": "./lib/index.d.ts",
84
+ },
85
+ }
86
+ `);
87
+ });
88
+ it('can generate an exports map for an external package with implicit type exports', async () => {
89
+ expect(await generateExportsMap(path.join(testGenerateExportsPath, 'node_modules/ext-esm-types')))
90
+ .toMatchInlineSnapshot(`
91
+ {
92
+ ".": {
93
+ "default": "./lib/main.js",
94
+ "types": "./lib/main.d.ts",
95
+ },
96
+ }
97
+ `);
98
+ });
99
+ });
100
+ //# sourceMappingURL=generateExportsMap.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateExportsMap.test.js","sourceRoot":"","sources":["../src/generateExportsMap.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,uBAAuB,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,uBAAuB,CAAC,CAAC;AAEtF,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,EAAE,CAAC,oEAAoE,EAAE,KAAK,IAAI,EAAE;QAClF,MAAM,CAAC,MAAM,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACjG,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0EAA0E,EAAE,KAAK,IAAI,EAAE;QACxF,MAAM,CAAC,MAAM,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;;;;;;KAM7G,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,KAAK,IAAI,EAAE;QACnF,MAAM,CAAC,MAAM,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;;;;;;KAM7G,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,KAAK,IAAI,EAAE;QACnF,MAAM,CAAC,MAAM,kBAAkB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AC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gFAAgF,EAAE,KAAK,IAAI,EAAE;QAC9F,MAAM,CAAC,MAAM,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,4BAA4B,CAAC,CAAC,CAAC;aAC/F,qBAAqB,CAAC;;;;;;;KAOxB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { createResolveMap } from './createResolveMap.js';
2
2
  export { evaluateImportsFromEntries } from './evaluateImportsFromEntries.js';
3
3
  export { PackageDefinitions, type PackageDefinitionTransform } from './PackageDefinitions.js';
4
4
  export { getFlattenedExportsMap } from './getFlattenedExportsMap.js';
5
+ export { generateExportsMap, addExportsMapEntry } from './generateExportsMap.js';
5
6
  export { resolve } from './resolve.js';
6
7
  export { resolveImportFromPackage, resolveImportFromPackagePath, type ResolveImportFromPackageOptions, } from './resolveImportFromPackagePath.js';
7
8
  export { detectModuleType, type ModuleType } from './detectModuleType.js';
package/lib/index.js CHANGED
@@ -2,6 +2,7 @@ export { createResolveMap } from './createResolveMap.js';
2
2
  export { evaluateImportsFromEntries } from './evaluateImportsFromEntries.js';
3
3
  export { PackageDefinitions } from './PackageDefinitions.js';
4
4
  export { getFlattenedExportsMap } from './getFlattenedExportsMap.js';
5
+ export { generateExportsMap, addExportsMapEntry } from './generateExportsMap.js';
5
6
  export { resolve } from './resolve.js';
6
7
  export { resolveImportFromPackage, resolveImportFromPackagePath, } from './resolveImportFromPackagePath.js';
7
8
  export { detectModuleType } from './detectModuleType.js';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAmC,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAE7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAmB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAkB,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAmC,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAE7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAmB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAkB,MAAM,sBAAsB,CAAC"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.31.1"
8
+ "packageVersion": "7.31.2"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/package-utilities",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Utilities for resolving/parsing packages and their imports.",
5
5
  "license": "MIT",
6
6
  "type": "module",