Commit 251aed5a authored by nanahira's avatar nanahira

bump

parent 09422343
......@@ -16,6 +16,17 @@ build:
paths:
- dist/
upload_to_minio:
stage: deploy
dependencies:
- build
tags:
- linux
script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/full/ s3://nanahira/koishi-plugin/pics
only:
- master
deploy_npm:
stage: deploy
dependencies:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -184,7 +184,7 @@ export class PicsPlugin {
)
.option(
'source',
'-s <source:string> 指定图源,逗号分隔。图源可以用 ${this.config.commandName}.sources 查询。',
`-s <source:string> 指定图源,逗号分隔。图源可以用 ${this.config.commandName}.sources 查询。`,
)
.option('tag', '-t <tag:string> 需要查询的图片标签,逗号分隔。')
.example(
......
const path = require('path');
const packgeInfo = require('./package.json');
function externalsFromDep() {
return Object.fromEntries(
[
...Object.keys(packgeInfo.dependencies || {}),
...Object.keys(packgeInfo.peerDependencies || {}),
]
.filter((dep) => dep !== 'source-map-support')
.map((dep) => [dep, dep]),
);
}
const packAll = !!process.env.PACK_ALL;
module.exports = {
entry: './src/index.ts',
......@@ -23,10 +37,10 @@ module.exports = {
library: {
type: 'commonjs',
},
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, packAll ? 'dist/full' : 'dist'),
},
externals: {
koishi: 'koishi',
'koishi-utils-schemagen': 'koishi-utils-schemagen',
...(packAll ? {} : externalsFromDep()),
},
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment