@realtek/core-theme 0.0.61 → 0.0.63
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-lib/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +14706 -14662
- package/dist-lib/index.js.map +1 -1
- package/package.json +3 -2
- package/scripts/init-admin-mongodb.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realtek/core-theme",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "RealTek CORE-THEME — shared React component & admin-screen library (AddFormV1, EditFormV1, ListView, DetailViewV1, ...).",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -41,8 +41,9 @@
|
|
|
41
41
|
"build": "vite build",
|
|
42
42
|
"prebuild": "node scripts/install-git-hooks.js",
|
|
43
43
|
"build:lib": "vite build --config vite.lib.config.js",
|
|
44
|
+
"postinstall": "node scripts/init-admin-mongodb.js --postinstall",
|
|
44
45
|
"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','
|
|
46
|
+
"check:publish": "node -e \"const p=require('./package.json');const s=p.scripts||{};const bad=['preinstall','install','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 expectedPostinstall='node scripts/init-admin-mongodb.js --postinstall';if(s.postinstall!==expectedPostinstall){console.error('Refusing to publish '+p.name+': postinstall must be '+JSON.stringify(expectedPostinstall)+'.');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.')\"",
|
|
46
47
|
"prepublishOnly": "npm run check:publish && npm run build:lib",
|
|
47
48
|
"lint": "eslint .",
|
|
48
49
|
"preview": "vite preview",
|
|
@@ -7,7 +7,7 @@ import { createInterface } from 'node:readline/promises';
|
|
|
7
7
|
import { stdin as input, stdout as output } from 'node:process';
|
|
8
8
|
import { MongoClient, ObjectId } from 'mongodb';
|
|
9
9
|
|
|
10
|
-
const DEFAULT_MONGO_URI = '
|
|
10
|
+
const DEFAULT_MONGO_URI = '';
|
|
11
11
|
const DEFAULT_ADMIN_EMAIL = 'admin@example.com';
|
|
12
12
|
const DEFAULT_ADMIN_PASSWORD_HASH = '$2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy';
|
|
13
13
|
const HISTORY_COLLECTION = 'MONGO_MIGRATION_HISTORY';
|