Skip to content

Commit

Permalink
Upgrade dependencies (#36)
Browse files Browse the repository at this point in the history
* chore: Upgrade node version to 18

* chore: Upgrade dependencies

* test: fix test importing not exsisting interface
  • Loading branch information
markbrockhoff authored Jul 20, 2023
1 parent 881f2dc commit 63ac34b
Show file tree
Hide file tree
Showing 9 changed files with 3,740 additions and 3,205 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
cache: npm

- name: Install Dependencies
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
demo*
node_modules
wiki
.npmrc

.DS_Store
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
7 changes: 1 addition & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */
const config = {
preset: "ts-jest",
testEnvironment: "node",
moduleNameMapper: {
// https://github.com/stoplightio/spectral/issues/2002
"^nimma/fallbacks$": "<rootDir>/node_modules/nimma/dist/cjs/fallbacks/index.js",
"^nimma/legacy$": "<rootDir>/node_modules/nimma/dist/legacy/cjs/index.js",
},
};

module.exports = config;
6,913 changes: 3,726 additions & 3,187 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"description": "[![SIT](https://img.shields.io/badge/SIT-awesome-blueviolet.svg)](https://jobs.schwarz)",
"license": "Apache-2.0",
"devDependencies": {
"@stoplight/spectral-core": "^1.10.2",
"@stoplight/spectral-ruleset-bundler": "^1.2.1",
"@types/jest": "^27.4.0",
"jest": "^27.4.7",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5",
"yaml": "^2.0.0-10"
"@stoplight/spectral-core": "^1.18.3",
"@stoplight/spectral-ruleset-bundler": "^1.5.2",
"@types/jest": "^29.5.3",
"jest": "^29.6.1",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6",
"yaml": "^2.3.1"
},
"scripts": {
"test": "jest",
Expand Down
3 changes: 1 addition & 2 deletions rules/general/path-must-match-api-standards.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Spectral } from "@stoplight/spectral-core";
import { IRange } from "@stoplight/types/dist/parsers";
import { setupSpectral } from "../../util/setup-spectral";

describe("path-must-match-api-standards", () => {
Expand All @@ -19,7 +18,7 @@ describe("path-must-match-api-standards", () => {

expect(result).toHaveLength(1);
expect(result[0].code).toEqual("path-must-match-api-standards");
expect(result[0].range).toEqual<IRange>({
expect(result[0].range).toEqual({
start: { line: 3, character: 33 },
end: { line: 3, character: 36 },
});
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"moduleResolution": "node",
"moduleResolution": "node16",

/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
Expand Down
2 changes: 1 addition & 1 deletion util/setup-spectral.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Spectral } from "@stoplight/spectral-core";
import { bundleAndLoadRuleset } from "@stoplight/spectral-ruleset-bundler/dist/loader/node";
import { bundleAndLoadRuleset } from "@stoplight/spectral-ruleset-bundler/with-loader";
import path from "path";
import fs from "fs";
import { fetch } from "@stoplight/spectral-runtime";
Expand Down

0 comments on commit 63ac34b

Please sign in to comment.