@realtek/core-theme 0.0.60 → 0.0.61

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": "@realtek/core-theme",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "type": "module",
5
5
  "description": "RealTek CORE-THEME — shared React component & admin-screen library (AddFormV1, EditFormV1, ListView, DetailViewV1, ...).",
6
6
  "license": "UNLICENSED",
@@ -10,6 +10,9 @@
10
10
  },
11
11
  "main": "./dist-lib/index.cjs",
12
12
  "module": "./dist-lib/index.js",
13
+ "bin": {
14
+ "core-theme-init-mongodb": "./scripts/init-admin-mongodb.js"
15
+ },
13
16
  "exports": {
14
17
  ".": {
15
18
  "import": "./dist-lib/index.js",
@@ -19,7 +22,8 @@
19
22
  "./package.json": "./package.json"
20
23
  },
21
24
  "files": [
22
- "dist-lib"
25
+ "dist-lib",
26
+ "scripts/init-admin-mongodb.js"
23
27
  ],
24
28
  "sideEffects": [
25
29
  "**/*.css"
@@ -37,7 +41,8 @@
37
41
  "build": "vite build",
38
42
  "prebuild": "node scripts/install-git-hooks.js",
39
43
  "build:lib": "vite build --config vite.lib.config.js",
40
- "check:publish": "node -e \"const p=require('./package.json');const s=p.scripts||{};const bad=['preinstall','install','postinstall','prepare'].filter(k=>s[k]);if(bad.length){console.error('Refusing to publish '+p.name+': remove package lifecycle script(s): '+bad.join(', '));process.exit(1)}if(!Array.isArray(p.files)||p.files.length!==1||p.files[0]!=='dist-lib'){console.error('Refusing to publish '+p.name+': package.json files must be [\\\"dist-lib\\\"].');process.exit(1)}console.log(p.name+' publish manifest is safe.')\"",
44
+ "init:mongodb": "node scripts/init-admin-mongodb.js",
45
+ "check:publish": "node -e \"const p=require('./package.json');const s=p.scripts||{};const bad=['preinstall','install','postinstall','prepare'].filter(k=>s[k]);if(bad.length){console.error('Refusing to publish '+p.name+': remove package lifecycle script(s): '+bad.join(', '));process.exit(1)}const expected=['dist-lib','scripts/init-admin-mongodb.js'];if(!Array.isArray(p.files)||expected.some(f=>!p.files.includes(f))||p.files.some(f=>!expected.includes(f))){console.error('Refusing to publish '+p.name+': package.json files must be '+JSON.stringify(expected)+'.');process.exit(1)}console.log(p.name+' publish manifest is safe.')\"",
41
46
  "prepublishOnly": "npm run check:publish && npm run build:lib",
42
47
  "lint": "eslint .",
43
48
  "preview": "vite preview",
@@ -85,6 +90,7 @@
85
90
  "dayjs": "^1.11.21",
86
91
  "docx-preview": "^0.3.7",
87
92
  "dompurify": "^3.4.11",
93
+ "mongodb": "^7.4.0",
88
94
  "prop-types": "^15.8.1",
89
95
  "react-pdf": "^10.4.1"
90
96
  },