@rimelight/config 0.0.3 → 0.0.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimelight/config",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "description": "Rimelight Entertainment's shared configuration package",
6
6
  "homepage": "https://rimelight.com/docs",
@@ -24,7 +24,10 @@
24
24
  "exports": {
25
25
  "./tsconfig/base": "./tsconfig/base.json",
26
26
  "./tsconfig/solid": "./tsconfig/solid.json",
27
- "./vite-plus/base": "./vite-plus/base.js"
27
+ "./vite-plus/base": {
28
+ "types": "./vite-plus/base.ts",
29
+ "default": "./vite-plus/base.js"
30
+ }
28
31
  },
29
32
  "publishConfig": {
30
33
  "access": "public"
package/vite-plus/base.js CHANGED
@@ -20,3 +20,16 @@ export function rimelightConfig() {
20
20
  }
21
21
  }
22
22
  }
23
+
24
+ export function rimelightPackConfig(options = {}) {
25
+ const { entry = ["src/index.ts"], pack = {}, ...rest } = options
26
+ return {
27
+ ...rimelightConfig(),
28
+ ...rest,
29
+ pack: {
30
+ entry,
31
+ dts: true,
32
+ ...pack
33
+ }
34
+ }
35
+ }
package/vite-plus/base.ts CHANGED
@@ -22,3 +22,18 @@ export function rimelightConfig(): UserConfig {
22
22
  }
23
23
  }
24
24
  }
25
+
26
+ export function rimelightPackConfig(
27
+ options: { entry?: string[]; pack?: Record<string, any>; [key: string]: any } = {}
28
+ ): any {
29
+ const { entry = ["src/index.ts"], pack = {}, ...rest } = options
30
+ return {
31
+ ...rimelightConfig(),
32
+ ...rest,
33
+ pack: {
34
+ entry,
35
+ dts: true,
36
+ ...pack
37
+ }
38
+ }
39
+ }