diff2html 3.4.47 → 3.4.48-34472g1379211.2.1379211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +15 -14
package/README.md CHANGED
@@ -321,7 +321,7 @@ import { Controller } from '@hotwired/stimulus';
321
321
 
322
322
  import { Diff2HtmlUI, Diff2HtmlUIConfig } from 'diff2html/lib/ui/js/diff2html-ui-slim.js';
323
323
 
324
- // Requires `yarn add highlight.js`
324
+ // Requires `npm install highlight.js`
325
325
  import 'highlight.js/styles/github.css';
326
326
  import 'diff2html/bundles/css/diff2html.min.css';
327
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diff2html",
3
- "version": "3.4.47",
3
+ "version": "3.4.48-34472g1379211.2.1379211",
4
4
  "homepage": "https://diff2html.xyz",
5
5
  "description": "Fast Diff to colorized HTML",
6
6
  "keywords": [
@@ -36,32 +36,33 @@
36
36
  },
37
37
  "scripts": {
38
38
  "eslint": "eslint --ignore-path .gitignore \"**/*.{js,jsx,ts,tsx,json}\"",
39
- "lint:check": "yarn run eslint",
40
- "lint:fix": "yarn run eslint --fix",
39
+ "lint:staged": "lint-staged",
40
+ "lint:check": "eslint",
41
+ "lint:fix": "eslint --fix",
41
42
  "prettier": "prettier --ignore-path .gitignore '**/*.+(js|jsx|ts|tsx|json|css|html|md|mdx)'",
42
- "format:check": "yarn run prettier --check",
43
- "format:fix": "yarn run prettier --write",
44
- "build": "yarn run build:css && yarn run build:templates && yarn run build:commonjs && yarn run build:esm && yarn run build:bundles && yarn run build:website",
43
+ "format:check": "npm run prettier --check",
44
+ "format:fix": "npm run prettier --write",
45
+ "build": "npm run build:css && npm run build:templates && npm run build:commonjs && npm run build:esm && npm run build:bundles && npm run build:website",
45
46
  "build:commonjs": "rm -rf lib; tsc -p tsconfig.json --outDir lib",
46
47
  "build:esm": "rm -rf lib-esm; tsc -p tsconfig.json -m ESNext --outDir lib-esm",
47
48
  "build:bundles": "rm -rf ./bundles/js; webpack --mode production --config webpack.bundles.ts",
48
49
  "build:css": "rm -rf ./bundles/css; postcss --config ./postcss.config.js --no-map -o ./bundles/css/diff2html.min.css ./src/ui/css/diff2html.css",
49
50
  "build:templates": "ts-node ./scripts/hulk.ts --wrapper ts --variable 'defaultTemplates' ./src/templates/*.mustache > ./src/diff2html-templates.ts",
50
51
  "build:website": "rm -rf docs; webpack --mode production --config webpack.website.ts",
51
- "gen": "yarn run gen:toc",
52
+ "gen": "npm run gen:toc",
52
53
  "gen:toc-base": "markdown-toc --maxdepth 3 --bullets='-' -i",
53
- "gen:toc": "yarn run gen:toc-base README.md",
54
+ "gen:toc": "npm run gen:toc-base README.md",
54
55
  "test": "is-ci 'test:coverage' 'test:watch'",
55
56
  "test:coverage": "jest --coverage",
56
57
  "test:watch": "jest --watch",
57
58
  "test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch",
58
- "coverage:open": "yarn run test:coverage && open ./coverage/index.html",
59
+ "coverage:open": "npm run test:coverage && open ./coverage/index.html",
59
60
  "coverage:push": "curl -Ls https://coverage.codacy.com/get.sh | bash",
60
- "validate": "yarn run build:templates && yarn run format:check && yarn run lint:check && yarn run build && yarn run test:coverage",
61
- "fix": "yarn run format:fix && yarn run lint:fix",
62
- "start": "yarn run start:website",
61
+ "validate": "npm run build:templates && npm run format:check && npm run lint:check && npm run build && npm run test:coverage",
62
+ "fix": "npm run format:fix && npm run lint:fix",
63
+ "start": "npm run start:website",
63
64
  "start:website": "webpack serve --mode development --config webpack.website.ts",
64
- "preversion": "yarn run validate",
65
+ "preversion": "npm run validate",
65
66
  "version": "git add -A package.json",
66
67
  "prepare": "husky install"
67
68
  },
@@ -77,7 +78,7 @@
77
78
  "prettier --write"
78
79
  ],
79
80
  "README.md": [
80
- "yarn run gen:toc-base"
81
+ "npm run gen:toc-base"
81
82
  ]
82
83
  },
83
84
  "dependencies": {