Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Mar 28, 2024
1 parent 7603251 commit a3864fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
- name: Install Dependencies
run: npm install
- run: npm run eslint
Expand Down
2 changes: 1 addition & 1 deletion lib/deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = async function(args, callback) {

await client.ensureDir(args.remote);
if (args.clear) await client.clearWorkingDir();
await client.uploadFromDir(hexo.public_dir);
await client.uploadFromDir(this.public_dir);

log.info('Deployment complete');
} catch (err) {
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "FTP deployer for Hexo",
"main": "index.js",
"files": [
"lib/",
"index.js"
],
"scripts": {
"eslint": "eslint .",
"eslint": "eslint index.js lib test",
"test": "mocha test/index.js",
"test-cov": "nyc npm run test"
},
Expand All @@ -28,13 +29,13 @@
"basic-ftp": "^5.0.5"
},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^6.1.0",
"eslint-config-hexo": "^4.1.0",
"chai": "^4.3.7",
"eslint": "^8.57.0",
"eslint-config-hexo": "^5.0.0",
"ftp-srv": "^4.6.3",
"hexo-fs": "^4.1.1",
"mocha": "^7.1.1",
"nyc": "^15.0.1"
"mocha": "^10.4.0",
"nyc": "^15.1.0"
},
"engines": {
"node": ">=8.6.0"
Expand Down
1 change: 0 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe('deployer', () => {
}

it('default', () => {
// return true;
return deployer({
host: '127.0.0.1',
user: 'anonymous',
Expand Down

0 comments on commit a3864fc

Please sign in to comment.