rimelight-components 2.0.80 → 2.0.82
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/dist/module.json +1 -1
- package/dist/module.mjs +15 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
|
|
|
4
4
|
import { basename } from 'node:path';
|
|
5
5
|
|
|
6
6
|
const name = "rimelight-components";
|
|
7
|
-
const version = "2.0.
|
|
7
|
+
const version = "2.0.82";
|
|
8
8
|
const homepage = "https://rimelight.com/tools/rimelight-components";
|
|
9
9
|
|
|
10
10
|
const defaultOptions = {
|
|
@@ -157,7 +157,20 @@ const module$1 = defineNuxtModule().with({
|
|
|
157
157
|
nuxt.options.appConfig.rimelightComponents || {},
|
|
158
158
|
options
|
|
159
159
|
);
|
|
160
|
-
|
|
160
|
+
const runtimeDir = resolve("./runtime");
|
|
161
|
+
nuxt.options.alias["#rimelight-components"] = runtimeDir;
|
|
162
|
+
nuxt.options.alias["#rimelight-components/utils"] = resolve(runtimeDir, "utils/index");
|
|
163
|
+
nuxt.hook("nitro:config", (nitroConfig) => {
|
|
164
|
+
nitroConfig.alias = nitroConfig.alias || {};
|
|
165
|
+
nitroConfig.alias["#rimelight-components"] = runtimeDir;
|
|
166
|
+
nitroConfig.alias["#rimelight-components/utils"] = resolve(runtimeDir, "utils/index");
|
|
167
|
+
});
|
|
168
|
+
nuxt.hook("prepare:types", (options2) => {
|
|
169
|
+
options2.tsConfig.compilerOptions = options2.tsConfig.compilerOptions || {};
|
|
170
|
+
options2.tsConfig.compilerOptions.paths = options2.tsConfig.compilerOptions.paths || {};
|
|
171
|
+
options2.tsConfig.compilerOptions.paths["#rimelight-components"] = [runtimeDir];
|
|
172
|
+
options2.tsConfig.compilerOptions.paths["#rimelight-components/*"] = [resolve(runtimeDir, "*")];
|
|
173
|
+
});
|
|
161
174
|
addComponentsDir({
|
|
162
175
|
path: resolve("./runtime/components/"),
|
|
163
176
|
pathPrefix: false,
|