From fd690a5f93453978cb582dff61355e262cf04357 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 8 Mar 2023 00:07:31 +0800 Subject: [PATCH] fix export & drop travis --- package.json | 8 ++------ test/benchmark.js | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index ccd1689662..f432d1f283 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "hexo", "version": "6.3.0", "description": "A fast, simple & powerful blog framework, powered by Node.js.", - "main": "lib/hexo", + "main": "dist/hexo", "bin": { "hexo": "./bin/hexo" }, @@ -16,12 +16,8 @@ "test-cov": "c8 --reporter=lcovonly npm test -- --no-parallel", "prepare": "husky install" }, - "directories": { - "lib": "./lib", - "bin": "./bin" - }, "files": [ - "lib/", + "dist/", "bin/" ], "repository": "hexojs/hexo", diff --git a/test/benchmark.js b/test/benchmark.js index 134fa2449b..148fd5d71e 100644 --- a/test/benchmark.js +++ b/test/benchmark.js @@ -22,9 +22,7 @@ const isWin32 = require('os').platform() === 'win32'; const npmScript = isWin32 ? 'npm.cmd' : 'npm'; const testDir = resolve('.tmp-hexo-theme-unit-test'); -const zeroEksDir = process.env.TRAVIS_BUILD_DIR - ? join(process.env.TRAVIS_BUILD_DIR, '0x') - : resolve(testDir, '0x'); +const zeroEksDir = resolve(testDir, '0x'); const hexoBin = resolve(testDir, 'node_modules/.bin/hexo'); const isGitHubActions = process.env.GITHUB_ACTIONS;