Skip to content

Commit

Permalink
fix(deps): Upgrade to source-utils 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jahredhope authored Apr 9, 2021
1 parent edd758b commit a89566e
Show file tree
Hide file tree
Showing 7 changed files with 2,146 additions and 2,837 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- master
- alpha
- 2.x
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on: [push]

jobs:
test:
name: Test
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Test
run: yarn test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@types/express": "^4.17.6",
"@types/jest": "^25.2.1",
"@types/memory-fs": "^0.3.2",
"@types/schema-utils": "^2.4.0",
"@types/webpack": "^4.41.12",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
Expand All @@ -58,8 +57,10 @@
},
"dependencies": {
"chalk": "^4.0.0",
"debug": "^4.3.1",
"eval": "^0.1.4",
"exception-formatter": "^2.1.2"
"exception-formatter": "^2.1.2",
"schema-utils": "^3.0.0"
},
"config": {
"commitizen": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import validateOptions from "schema-utils";
import { validate } from "schema-utils";

import schema from "./schemas/HtmlRenderWebpackPlugin.json";
import RenderError from "./RenderError";
Expand Down Expand Up @@ -52,7 +52,7 @@ interface CompilationStatus {

export = class HtmlRenderPlugin<Route extends BaseRoute = BaseRoute> {
constructor(options: Options<Route> = {}) {
validateOptions(schema, options || {}, "HTML Render Webpack Plugin");
validate(schema, options || {}, "HTML Render Webpack Plugin");

const pluginName = "HtmlRenderPlugin";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`Use legacy api should render a HTML file 1`] = `
\\"route\\": \\"/\\",
\\"extra\\": \\"extra-value\\",
\\"assets\\": {
\\"main\\": \\"client-main-2951ae76c7e3fa46fad4.js\\"
\\"main\\": \\"client-main-6c850010dbab14126df7.js\\"
}
}
]</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`Render WebpackStats should render a with asset names 1`] = `
Object {
"index.html": "{
\\"assets\\": {
\\"main\\": \\"client-main-2951ae76c7e3fa46fad4.js\\"
\\"main\\": \\"client-main-6c850010dbab14126df7.js\\"
}
}",
}
Expand Down
Loading

0 comments on commit a89566e

Please sign in to comment.