This commit is contained in:
mjsoftware 2024-12-27 16:27:56 +08:00
parent 256466e54a
commit 325e74affb
4 changed files with 3 additions and 6 deletions

View File

@ -131,9 +131,6 @@ task('zip', () => {
task('publish', (done) => { task('publish', (done) => {
try { try {
// 切换到项目根目录
process.chdir(path.resolve(__dirname, '..'))
// 需要将tag标签内容置为 latest // 需要将tag标签内容置为 latest
process.env.npm_config_tag = 'latest' process.env.npm_config_tag = 'latest'
console.log(execSync('npm publish').toString()) console.log(execSync('npm publish').toString())

2
package-lock.json generated
View File

@ -5,7 +5,7 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "halo-theme-dream2.0-plus", "name": "halo-theme-dream2-plus",
"version": "1.2.1", "version": "1.2.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@ -1,5 +1,5 @@
{ {
"name": "halo-theme-dream2.0-plus", "name": "halo-theme-dream2-plus",
"version": "1.3.5", "version": "1.3.5",
"description": "梦之城,童话梦境,动漫类型博客主题。", "description": "梦之城,童话梦境,动漫类型博客主题。",
"main": "index.js", "main": "index.js",

View File

@ -65,7 +65,7 @@
const version = new URLSearchParams(url.split('?')[1]).get('mew') || 'latest' const version = new URLSearchParams(url.split('?')[1]).get('mew') || 'latest'
return [ return [
url, url,
...cdnSource.map(value => `${value}/halo-theme-dream2.0-plus@${version}/templates${path}`) ...cdnSource.map(value => `${value}/halo-theme-dream2-plus@${version}/templates${path}`)
] ]
}, },
}, },