@gloww/gloww 19.0.0-beta.4 → 20.0.0-beta.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/compute-version.js +6 -3
- package/fesm2022/gloww-gloww.mjs +192 -204
- package/fesm2022/gloww-gloww.mjs.map +1 -1
- package/index.d.ts +60 -60
- package/package.json +3 -3
- package/gloww.theme.scss +0 -196
package/compute-version.js
CHANGED
|
@@ -39,6 +39,7 @@ const readFile = util.promisify(fs.readFile);
|
|
|
39
39
|
|
|
40
40
|
console.log('\nRunning post-build tasks');
|
|
41
41
|
|
|
42
|
+
console.log(`dist Path: ${distPath}`);
|
|
42
43
|
// our version.json will be in the dist folder
|
|
43
44
|
console.log(`versionFilePath: ${versionFilePath}`);
|
|
44
45
|
|
|
@@ -46,9 +47,9 @@ let mainHash = '';
|
|
|
46
47
|
let mainBundleEs5File = '';
|
|
47
48
|
|
|
48
49
|
// RegExp to find main.bundle.js, even if it doesn't include a hash in it's name (dev build)
|
|
49
|
-
let mainBundleEs5Regexp = /^main-es5.?([
|
|
50
|
-
let mainBundleRegexp = /^main.?([
|
|
51
|
-
let mainRegexp = /^main.?([
|
|
50
|
+
let mainBundleEs5Regexp = /^main-es5.?([A-Za-z0-9]*)?(\.bundle)?.js$/;
|
|
51
|
+
let mainBundleRegexp = /^main.?([A-Za-z0-9]*)?(\.bundle)?.js$/;
|
|
52
|
+
let mainRegexp = /^main.?([A-Za-z0-9]*)?(\.bundle)?.js$/;
|
|
52
53
|
|
|
53
54
|
// read the dist folder files and find the one we're looking for
|
|
54
55
|
readDir(distPath)
|
|
@@ -56,7 +57,9 @@ readDir(distPath)
|
|
|
56
57
|
mainBundleFile = files.find(f => mainBundleRegexp.test(f));
|
|
57
58
|
mainBundleEs5File = files.find(f => mainBundleEs5Regexp.test(f));
|
|
58
59
|
mainFile = files.find(f => mainRegexp.test(f));
|
|
60
|
+
console.log(`mainBundleFile ${mainBundleFile}`);
|
|
59
61
|
console.log(`mainBundleEs5File ${mainBundleEs5File}`);
|
|
62
|
+
console.log(`mainFile ${mainFile}`);
|
|
60
63
|
|
|
61
64
|
if (mainBundleEs5File) {
|
|
62
65
|
let matchHash = mainBundleEs5File.match(mainBundleEs5Regexp);
|