@lwrjs/npm-module-provider 0.10.0-alpha.8 → 0.10.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/build/es/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractModuleId, ModuleCompiled, ModuleEntry, ModuleProvider, ModuleSource, ProviderContext } from '@lwrjs/types';
|
|
1
|
+
import type { AbstractModuleId, ModuleCompiled, ModuleEntry, ModuleProvider, ModuleSource, ProviderContext } from '@lwrjs/types';
|
|
2
2
|
export interface NpmModuleProviderConfig {
|
|
3
3
|
external?: string[];
|
|
4
4
|
polyfillNode?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FsModuleEntry } from '@lwrjs/types';
|
|
2
|
-
import { NpmModuleProviderConfig } from './index';
|
|
1
|
+
import type { FsModuleEntry } from '@lwrjs/types';
|
|
2
|
+
import type { NpmModuleProviderConfig } from './index';
|
|
3
3
|
export declare function resolveNpmModuleSpecifierBlock(specifier: string, dest: string, config: NpmModuleProviderConfig): Promise<FsModuleEntry | undefined>;
|
|
4
4
|
export declare function resolveNpmModuleSpecifier(specifier: string, dest: string, config: NpmModuleProviderConfig): Promise<FsModuleEntry | undefined>;
|
|
5
5
|
//# sourceMappingURL=resolveNpmModules.d.ts.map
|
|
@@ -48,8 +48,10 @@ export async function resolveNpmModuleSpecifierBlock(specifier, dest, config) {
|
|
|
48
48
|
else if (pkg.module) {
|
|
49
49
|
pkg.main = pkg.module;
|
|
50
50
|
}
|
|
51
|
-
// grab package.json version before we go
|
|
52
|
-
|
|
51
|
+
// grab package.json version (if set) before we go
|
|
52
|
+
if (pkg.version) {
|
|
53
|
+
pkgVersion = pkg.version;
|
|
54
|
+
}
|
|
53
55
|
return pkg;
|
|
54
56
|
},
|
|
55
57
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FsModuleEntry } from '@lwrjs/types';
|
|
2
|
-
import { NpmModuleProviderConfig } from './index';
|
|
1
|
+
import type { FsModuleEntry } from '@lwrjs/types';
|
|
2
|
+
import type { NpmModuleProviderConfig } from './index';
|
|
3
3
|
export declare function resolveNpmModuleSpecifierBlock(specifier: string, dest: string, config: NpmModuleProviderConfig): Promise<FsModuleEntry | undefined>;
|
|
4
4
|
export declare function resolveNpmModuleSpecifierDeprecated(specifier: string, dest: string, config: NpmModuleProviderConfig): Promise<FsModuleEntry | undefined>;
|
|
5
5
|
//# sourceMappingURL=resolveNpmModulesDeprecated.d.ts.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.10.0
|
|
7
|
+
"version": "0.10.0",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -29,18 +29,28 @@
|
|
|
29
29
|
"build/**/*.cjs",
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc -b",
|
|
34
|
+
"clean": "rm -rf build node_modules",
|
|
35
|
+
"test": "jest"
|
|
36
|
+
},
|
|
32
37
|
"dependencies": {
|
|
33
|
-
"@esbuild-plugins/node-modules-polyfill": "^0.
|
|
34
|
-
"@lwrjs/shared-utils": "0.10.0
|
|
38
|
+
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
39
|
+
"@lwrjs/shared-utils": "0.10.0",
|
|
35
40
|
"esbuild": "^0.9.7",
|
|
36
41
|
"esinstall": "^1.1.7",
|
|
37
42
|
"resolve": "^1.22.1"
|
|
38
43
|
},
|
|
39
44
|
"devDependencies": {
|
|
40
|
-
"@lwrjs/types": "0.10.0
|
|
45
|
+
"@lwrjs/types": "0.10.0",
|
|
46
|
+
"jest": "^26.6.3",
|
|
47
|
+
"ts-jest": "^26.5.6"
|
|
41
48
|
},
|
|
42
49
|
"engines": {
|
|
43
|
-
"node": ">=16.0.0
|
|
50
|
+
"node": ">=16.0.0"
|
|
51
|
+
},
|
|
52
|
+
"volta": {
|
|
53
|
+
"extends": "../../../package.json"
|
|
44
54
|
},
|
|
45
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "e6deaeef3db8aa079acefed508897eca19b3218a"
|
|
46
56
|
}
|