rimelight-components 2.0.81 → 2.0.83

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.0.81",
3
+ "version": "2.0.83",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
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.81";
7
+ const version = "2.0.83";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -158,12 +158,21 @@ const module$1 = defineNuxtModule().with({
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");
161
+ nuxt.options.alias["#rimelight-components/utils"] = resolve(runtimeDir, "utils/index.ts");
162
+ nuxt.options.alias["#rimelight-components/utils/"] = resolve(runtimeDir, "utils/");
163
163
  nuxt.hook("nitro:config", (nitroConfig) => {
164
164
  nitroConfig.alias = nitroConfig.alias || {};
165
165
  nitroConfig.alias["#rimelight-components"] = runtimeDir;
166
- nitroConfig.alias["#rimelight-components/utils"] = resolve(runtimeDir, "utils/index");
166
+ nitroConfig.alias["#rimelight-components/utils"] = resolve(runtimeDir, "utils/index.ts");
167
+ nitroConfig.alias["#rimelight-components/utils/"] = resolve(runtimeDir, "utils/");
168
+ });
169
+ nuxt.hook("prepare:types", (opts) => {
170
+ opts.tsConfig.compilerOptions = opts.tsConfig.compilerOptions || {};
171
+ opts.tsConfig.compilerOptions.paths = opts.tsConfig.compilerOptions.paths || {};
172
+ opts.tsConfig.compilerOptions.paths["#rimelight-components"] = [runtimeDir];
173
+ opts.tsConfig.compilerOptions.paths["#rimelight-components/*"] = [resolve(runtimeDir, "*")];
174
+ opts.tsConfig.compilerOptions.paths["#rimelight-components/utils"] = [resolve(runtimeDir, "utils/index.ts")];
175
+ opts.tsConfig.compilerOptions.paths["#rimelight-components/utils/*"] = [resolve(runtimeDir, "utils/*")];
167
176
  });
168
177
  addComponentsDir({
169
178
  path: resolve("./runtime/components/"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
3
  "description": "A component library by Rimelight Entertainment.",
4
- "version": "2.0.81",
4
+ "version": "2.0.83",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",