@sunny-base-web/constants 0.8.36 → 0.8.37

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.
Files changed (2) hide show
  1. package/package.json +15 -21
  2. package/src/index.ts +9 -0
package/package.json CHANGED
@@ -1,37 +1,31 @@
1
1
  {
2
2
  "name": "@sunny-base-web/constants",
3
- "version": "0.8.36",
3
+ "version": "0.8.37",
4
4
  "private": false,
5
- "main": "./src/index.ts",
6
- "module": "./src/index.ts",
7
- "types": "./src/index.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
11
  "exports": {
12
- ".": "./src/index.ts"
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ }
13
16
  },
14
17
  "type": "module",
15
18
  "publishConfig": {
16
- "main": "./dist/index.js",
17
- "module": "./dist/index.js",
18
- "types": "./dist/index.d.ts",
19
- "exports": {
20
- ".": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/index.js"
23
- }
24
- },
25
19
  "access": "public",
26
20
  "registry": "https://registry.npmjs.org/"
27
21
  },
28
- "scripts": {
29
- "build": "tsup src/index.ts --format esm --dts --clean"
30
- },
31
22
  "devDependencies": {
32
- "@sunny-base-web/tsconfig": "workspace:*",
33
23
  "tsup": "^8.5.1",
34
- "typescript": "catalog:",
35
- "vite": "^7.3.1"
24
+ "typescript": "^5.7.2",
25
+ "vite": "^7.3.1",
26
+ "@sunny-base-web/tsconfig": "0.8.37"
27
+ },
28
+ "scripts": {
29
+ "build": "tsup src/index.ts --format esm --dts --clean"
36
30
  }
37
- }
31
+ }
package/src/index.ts ADDED
@@ -0,0 +1,9 @@
1
+ export const DEFAULT_NAMESPACE = 'sunny-base';
2
+
3
+ export const STORE_SECURE_KEY = '_secure_key_';
4
+
5
+ /// <reference types="vite/client" />
6
+
7
+ export const SSO_ORIGIN = import.meta.env.VITE_APP_SSOORIGIN;
8
+
9
+ export const TABBAR_MAX_COUNT = 20;