Skip to content

Commit

Permalink
Update preghpages/ghpages commands to use recent versions without vul…
Browse files Browse the repository at this point in the history
…nerabilities
  • Loading branch information
vincentfretin committed Jan 13, 2025
1 parent b700ca6 commit a665887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dist:min": "webpack --config webpack.prod.config.js",
"docs": "markserv --dir docs --port 9001",
"preghpages": "node ./scripts/preghpages.js",
"ghpages": "ghpages -p gh-pages/",
"ghpages": "gh-pages -d gh-pages",
"lint": "standardx -v | snazzy",
"lint:fix": "standardx --fix",
"precommit": "npm run lint",
Expand Down Expand Up @@ -55,7 +55,7 @@
"eslint": "^8.45.0",
"eslint-config-semistandard": "^17.0.0",
"eslint-config-standard-jsx": "^11.0.0",
"ghpages": "0.0.8",
"gh-pages": "^6.3.0",
"git-rev": "^0.2.1",
"glob": "^8.0.3",
"husky": "^0.11.7",
Expand All @@ -73,9 +73,8 @@
"karma-webpack": "^5.0.0",
"markserv": "github:sukima/markserv#feature/fix-broken-websoketio-link",
"mocha": "^10.0.0",
"replace-in-file": "^2.5.3",
"replace-in-file": "^8.3.0",
"shelljs": "^0.8.5",
"shx": "^0.2.2",
"sinon": "<12.0.0",
"sinon-chai": "^3.7.0",
"snazzy": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/preghpages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require('path');

const shell = require('shelljs');
const replace = require('replace-in-file');
const replaceInFileSync = require('replace-in-file').replaceInFileSync;

const rootDir = path.join(__dirname, '..');

Expand All @@ -20,7 +20,7 @@ shell.cp('-r', [
], 'gh-pages');

function htmlReplace (before, after) {
replace.sync({
replaceInFileSync({
from: before,
to: after,
files: 'gh-pages/**/*.html'
Expand Down

0 comments on commit a665887

Please sign in to comment.