From 325e74affb31c907d7e8eed8b070d3449faeb40b Mon Sep 17 00:00:00 2001 From: mjsoftware <1406993111@qq.com> Date: Fri, 27 Dec 2024 16:27:56 +0800 Subject: [PATCH] 1.3.5 --- gulpfile.js | 3 --- package-lock.json | 2 +- package.json | 2 +- src/js/sw.js | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 266e725..08b4693 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -131,9 +131,6 @@ task('zip', () => { task('publish', (done) => { try { - // 切换到项目根目录 - process.chdir(path.resolve(__dirname, '..')) - // 需要将tag标签内容置为 latest process.env.npm_config_tag = 'latest' console.log(execSync('npm publish').toString()) diff --git a/package-lock.json b/package-lock.json index 78b55d4..8e6afbf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "requires": true, "packages": { "": { - "name": "halo-theme-dream2.0-plus", + "name": "halo-theme-dream2-plus", "version": "1.2.1", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 4a7ab59..34b65d9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "halo-theme-dream2.0-plus", + "name": "halo-theme-dream2-plus", "version": "1.3.5", "description": "梦之城,童话梦境,动漫类型博客主题。", "main": "index.js", diff --git a/src/js/sw.js b/src/js/sw.js index 2f9f1da..3c6ea33 100644 --- a/src/js/sw.js +++ b/src/js/sw.js @@ -65,7 +65,7 @@ const version = new URLSearchParams(url.split('?')[1]).get('mew') || 'latest' return [ url, - ...cdnSource.map(value => `${value}/halo-theme-dream2.0-plus@${version}/templates${path}`) + ...cdnSource.map(value => `${value}/halo-theme-dream2-plus@${version}/templates${path}`) ] }, },