@zykjcommon/questions 0.0.67 → 0.0.69
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/zykjcommon-questions.common.js +17792 -16249
- package/dist/zykjcommon-questions.umd.js +17656 -16113
- package/dist/zykjcommon-questions.umd.min.js +7 -7
- package/package.json +4 -4
- package/publish.js +14 -0
- package/readme +6 -2
- package/tsconfig.json +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zykjcommon/questions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.69",
|
|
4
4
|
"main": "src/components/questions/entry.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@vue/cli-plugin-vuex": "~4.5.0",
|
|
33
33
|
"@vue/cli-service": "^5.0.1",
|
|
34
34
|
"@vue/compiler-sfc": "^3.0.0",
|
|
35
|
-
"@zykjcommon/questions": "^0.0.
|
|
35
|
+
"@zykjcommon/questions": "^0.0.67",
|
|
36
36
|
"element-plus": "^2.0.2",
|
|
37
37
|
"file-loader": "^6.2.0",
|
|
38
38
|
"image-webpack-loader": "^8.1.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"postcss-simple-vars": "^5.0.2",
|
|
47
47
|
"sass": "^1.26.5",
|
|
48
48
|
"sass-loader": "^8.0.2",
|
|
49
|
-
"typescript": "~
|
|
49
|
+
"typescript": "~5.6.3",
|
|
50
50
|
"unplugin-auto-import": "^0.6.0",
|
|
51
51
|
"unplugin-element-plus": "^0.3.1",
|
|
52
52
|
"unplugin-vue-components": "^0.17.18",
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
"access": "public",
|
|
63
63
|
"registry": "https://registry.npmjs.org"
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
package/publish.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Allen Liu on 2025/12/25.
|
|
3
|
+
*/
|
|
4
|
+
const { execSync } = require('child_process');
|
|
5
|
+
console.log('🏗️ 构建项目...');
|
|
6
|
+
execSync('npm run build:lib', { stdio: 'inherit' });
|
|
7
|
+
|
|
8
|
+
console.log('📤 发布到npm...');
|
|
9
|
+
execSync('npm publish', { stdio: 'inherit' });
|
|
10
|
+
console.log('✅ 发布成功!');
|
|
11
|
+
|
|
12
|
+
console.log('📦 同步包到cnpm...');
|
|
13
|
+
execSync('cnpm sync', { stdio: 'inherit' });
|
|
14
|
+
console.log('✅ 同步cnpm包成功...');
|
package/readme
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
发布:
|
|
3
3
|
package.json版本号version需要变更
|
|
4
|
+
打包
|
|
4
5
|
npm run build:lib
|
|
5
|
-
npm
|
|
6
|
-
|
|
6
|
+
npm login
|
|
7
|
+
npm publish
|
|
8
|
+
下载包的时候需要npm install @zykjcommon/questions --save --force
|
|
7
9
|
如果源是cnpm需要cnpm sync手动同步
|
|
8
10
|
发布的时候"vue"
|
|
9
11
|
"vue-router"
|
|
10
12
|
"vuex"
|
|
11
13
|
"vuex-composition-helpers"
|
|
12
14
|
这四个包要放在dev依赖里面
|
|
15
|
+
新的npm publish需要2次验证,中途可能需要VPN支持,如果最后验证的时候卡住条实际上是通过了
|
|
16
|
+
publish.js改成用.npmrc存放bypass 2fa验证的token方式自动化发布
|
|
13
17
|
|
|
14
18
|
|
package/tsconfig.json
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "esnext",
|
|
4
4
|
"module": "esnext",
|
|
5
|
-
"strict":
|
|
5
|
+
"strict": false,
|
|
6
6
|
"allowJs": true,
|
|
7
7
|
"jsx": "preserve",
|
|
8
|
+
"allowImportingTsExtensions":true,
|
|
9
|
+
"noEmit": true,
|
|
8
10
|
"importHelpers": true,
|
|
9
11
|
"moduleResolution": "node",
|
|
10
12
|
"skipLibCheck": true,
|
|
@@ -13,8 +15,7 @@
|
|
|
13
15
|
"sourceMap": true,
|
|
14
16
|
"baseUrl": ".",
|
|
15
17
|
"types": [
|
|
16
|
-
"webpack-env"
|
|
17
|
-
"node"
|
|
18
|
+
"webpack-env"
|
|
18
19
|
],
|
|
19
20
|
"paths": {
|
|
20
21
|
"@/*": [
|