@lls/vitescripts 24.0.1-827e0c487 → 24.0.1-994004eea
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/package.json +1 -1
- package/src/llsSideRefreshMetaPlugin.mjs +10 -20
package/package.json
CHANGED
|
@@ -7,28 +7,18 @@ const pwd = toLocal('../')
|
|
|
7
7
|
|
|
8
8
|
// sideRefreshActiveModules is of the form ['viewer', 'superkit', ...] with 'viewer' if repo launched
|
|
9
9
|
// WITH_VIEWER=1 npm start
|
|
10
|
-
export const makeSideRefreshThemeInterceptor = async (sideRefreshActiveModules
|
|
11
|
-
const isMonorepo = path.basename(searchForWorkspaceRoot(pwd)) !== 'vitescripts'
|
|
10
|
+
export const makeSideRefreshThemeInterceptor = async (sideRefreshActiveModules) => {
|
|
12
11
|
const parentDir = path.basename(path.dirname(pwd))
|
|
13
12
|
const sideRefreshThemes = {}
|
|
14
|
-
const cssThemeMap =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
: {
|
|
24
|
-
viewer: '@lls/viewer/lib/css-bare.mjs',
|
|
25
|
-
// kit: no themes for kit
|
|
26
|
-
superkit: '@lls/superkit/lib/css-bare.mjs',
|
|
27
|
-
core: '@lls/core/lib/css-bare.mjs',
|
|
28
|
-
audio: '@lls/lls-audio/lib/css-bare.mjs',
|
|
29
|
-
code: '@lls/lls-code/lib/css-bare.mjs'
|
|
30
|
-
}
|
|
31
|
-
await Promise.all((isMonorepo ? Object.keys(cssThemeMap) : sideRefreshActiveModules).map(sideRefreshName => {
|
|
13
|
+
const cssThemeMap = {
|
|
14
|
+
viewer: path.join(pwd, '../viewer/src/utils/css-bare.mjs'),
|
|
15
|
+
// kit: no themes for kit
|
|
16
|
+
superkit: path.join(pwd, '../superkit/src/internals/utils/css-bare.mjs'),
|
|
17
|
+
core: path.join(pwd, '../core/src/utils/css-bare.mjs'),
|
|
18
|
+
audio: path.join(pwd, '../lls-audio/src/utils/css-bare.mjs'),
|
|
19
|
+
code: path.join(pwd, '../lls-code/src/utils/css-bare.mjs')
|
|
20
|
+
}
|
|
21
|
+
await Promise.all(Object.keys(cssThemeMap).map(sideRefreshName => {
|
|
32
22
|
if (!cssThemeMap[sideRefreshName]) {
|
|
33
23
|
throw new Error('invalid side refresh name' + sideRefreshName)
|
|
34
24
|
}
|