@lwrjs/config 0.9.0-alpha.21 → 0.9.0-alpha.22
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/cjs/index.cjs +1 -0
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/package.cjs +14 -1
- package/package.json +8 -5
package/build/cjs/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
// packages/@lwrjs/config/src/index.ts
|
|
25
25
|
__markAsModule(exports);
|
|
26
26
|
__export(exports, {
|
|
27
|
+
LWC_VERSION: () => import_package.lwcVersion,
|
|
27
28
|
LWR_VERSION: () => import_package.version,
|
|
28
29
|
executeConfigHooks: () => import_hooks.executeConfigHooks,
|
|
29
30
|
executeStartHooks: () => import_hooks.executeStartHooks,
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { version as LWR_VERSION } from '@lwrjs/config/package';
|
|
1
|
+
export { version as LWR_VERSION, lwcVersion as LWC_VERSION } from '@lwrjs/config/package';
|
|
2
2
|
export { loadConfig, resolveGlobalConfig as normalizeConfig } from './global-config.js';
|
|
3
3
|
export { getRuntimeEnvironment } from './runtime-config.js';
|
|
4
4
|
export { executeConfigHooks, executeStartHooks } from './hooks.js';
|
package/build/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { version as LWR_VERSION } from '@lwrjs/config/package';
|
|
1
|
+
export { version as LWR_VERSION, lwcVersion as LWC_VERSION } from '@lwrjs/config/package';
|
|
2
2
|
export { loadConfig, resolveGlobalConfig as normalizeConfig } from './global-config.js';
|
|
3
3
|
export { getRuntimeEnvironment } from './runtime-config.js';
|
|
4
4
|
export { executeConfigHooks, executeStartHooks } from './hooks.js';
|
package/package.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
|
+
const resolve = require('resolve');
|
|
3
4
|
const rootPath = path.join(__dirname, './');
|
|
4
5
|
|
|
6
|
+
// Get the LWR Version
|
|
5
7
|
let version;
|
|
6
8
|
if (globalThis.LWR_VERSION) {
|
|
7
9
|
version = globalThis.LWR_VERSION;
|
|
@@ -9,7 +11,18 @@ if (globalThis.LWR_VERSION) {
|
|
|
9
11
|
version = JSON.parse(fs.readFileSync(path.join(rootPath, 'package.json'), 'utf-8')).version;
|
|
10
12
|
}
|
|
11
13
|
|
|
14
|
+
// Get the LWC Version
|
|
15
|
+
let lwcVersion;
|
|
16
|
+
if (globalThis.LWC_VERSION) {
|
|
17
|
+
version = globalThis.LWC_VERSION;
|
|
18
|
+
} else {
|
|
19
|
+
const packageJsonPath = resolve.sync(`lwc/package.json`);
|
|
20
|
+
const { version: packageVersion } = JSON.parse(fs.readFileSync(packageJsonPath), 'utf-8');
|
|
21
|
+
lwcVersion = packageVersion;
|
|
22
|
+
}
|
|
23
|
+
|
|
12
24
|
module.exports = {
|
|
13
25
|
rootPath,
|
|
14
|
-
version
|
|
26
|
+
version,
|
|
27
|
+
lwcVersion
|
|
15
28
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0-alpha.
|
|
7
|
+
"version": "0.9.0-alpha.22",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -36,16 +36,19 @@
|
|
|
36
36
|
"package.cjs"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lwrjs/diagnostics": "0.9.0-alpha.
|
|
40
|
-
"@lwrjs/shared-utils": "0.9.0-alpha.
|
|
39
|
+
"@lwrjs/diagnostics": "0.9.0-alpha.22",
|
|
40
|
+
"@lwrjs/shared-utils": "0.9.0-alpha.22",
|
|
41
41
|
"fs-extra": "^10.1.0",
|
|
42
42
|
"jsonc-parser": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@lwrjs/types": "0.9.0-alpha.
|
|
45
|
+
"@lwrjs/types": "0.9.0-alpha.22"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"lwc": "2.x"
|
|
46
49
|
},
|
|
47
50
|
"engines": {
|
|
48
51
|
"node": ">=14.15.4 <19"
|
|
49
52
|
},
|
|
50
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d7e7a6e84df652a09d78b9b0fadca271a438a01c"
|
|
51
54
|
}
|