diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/package-lock.json b/package-lock.json index bd5af95..79942da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,6 +49,10 @@ "ts-jest": "^29.1.1", "typescript": "^5.0.4" }, + "engines": { + "node": ">=18", + "npm": ">=9.*" + }, "peerDependencies": { "@gravity-ui/uikit": "^5.18.0", "react": "^18.2.0", diff --git a/package.json b/package.json index 1f64b54..f047ae5 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,10 @@ "description": "OpenAPI extension for Diplodoc transformer and builder", "main": "plugin/cjs/index.min.js", "types": "plugin/index.d.ts", + "engines": { + "node": ">=18", + "npm": ">=9.*" + }, "exports": { ".": { "require": "./plugin/cjs/index.min.js", @@ -92,6 +96,12 @@ "json-stringify-safe": "^5.0.1", "slugify": "^1.6.6" }, + "overrides": { + "react-sortable-hoc": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, "keywords": [ "diplodoc", "diplodoc-extension",