From e2b62fc269d0cc2ab60024855ef274aa8e5e3371 Mon Sep 17 00:00:00 2001 From: Aidan Cunniffe Date: Mon, 26 Aug 2024 18:21:55 -0400 Subject: [PATCH] fix --web packaging (#2859) Co-authored-by: Aidan Cunniffe --- package.json | 2 +- projects/fastify-capture/package.json | 2 +- projects/json-pointer-helpers/package.json | 2 +- projects/openapi-io/package.json | 4 ++-- projects/openapi-utilities/package.json | 2 +- projects/optic/package.json | 4 ++-- projects/optic/src/commands/diff/diff.ts | 3 +-- projects/rulesets-base/package.json | 2 +- projects/standard-rulesets/package.json | 2 +- yarn.lock | 23 ++++++++++++++++++++-- 10 files changed, 32 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 592e60bb1b..51aba4dc9c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "openapi-workspaces", "license": "MIT", "private": true, - "version": "1.0.0", + "version": "1.0.1", "workspaces": [ "projects/json-pointer-helpers", "projects/openapi-io", diff --git a/projects/fastify-capture/package.json b/projects/fastify-capture/package.json index 0be1c0ddfa..e17558cfad 100644 --- a/projects/fastify-capture/package.json +++ b/projects/fastify-capture/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/fastify-capture", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "1.0.0", + "version": "1.0.1", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/json-pointer-helpers/package.json b/projects/json-pointer-helpers/package.json index 7e8c358ea2..a2500b884c 100644 --- a/projects/json-pointer-helpers/package.json +++ b/projects/json-pointer-helpers/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/json-pointer-helpers", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "1.0.0", + "version": "1.0.1", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/openapi-io/package.json b/projects/openapi-io/package.json index a00c14cb26..40f8f1ecbf 100644 --- a/projects/openapi-io/package.json +++ b/projects/openapi-io/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/openapi-io", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "1.0.0", + "version": "1.0.1", "main": "build/index.js", "types": "build/index.d.ts", "files": [ @@ -44,7 +44,7 @@ "@jsdevtools/ono": "^7.1.3", "@useoptic/json-pointer-helpers": "workspace:*", "@useoptic/openapi-utilities": "workspace:*", - "ajv": "^8.6.0", + "ajv": "8.17.1", "ajv-errors": "~3.0.0", "ajv-formats": "~2.1.0", "bottleneck": "^2.19.5", diff --git a/projects/openapi-utilities/package.json b/projects/openapi-utilities/package.json index 2202f28ea1..05d37f9a38 100644 --- a/projects/openapi-utilities/package.json +++ b/projects/openapi-utilities/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/openapi-utilities", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "1.0.0", + "version": "1.0.1", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/optic/package.json b/projects/optic/package.json index 0873307d20..63af7273cf 100644 --- a/projects/optic/package.json +++ b/projects/optic/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/optic", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "1.0.0", + "version": "1.0.1", "main": "build/index.js", "types": "build/index.d.ts", "files": [ @@ -72,7 +72,7 @@ "@useoptic/openapi-utilities": "workspace:*", "@useoptic/rulesets-base": "workspace:*", "@useoptic/standard-rulesets": "workspace:*", - "ajv": "^8.6.0", + "ajv": "8.17.1", "ajv-formats": "~2.1.0", "async-exit-hook": "^2.0.1", "axax": "^0.2.2", diff --git a/projects/optic/src/commands/diff/diff.ts b/projects/optic/src/commands/diff/diff.ts index 2ea2452faa..9643a31e89 100644 --- a/projects/optic/src/commands/diff/diff.ts +++ b/projects/optic/src/commands/diff/diff.ts @@ -455,8 +455,7 @@ const getDiffAction = analyticsData.compressedDataLength = compressedData.length; logger.info('Opening up diff in web view'); const baseHtml = path.resolve( - __dirname, - '../../../web/build/index.html' + path.join(__dirname, '../../../web/build/index.html') ); maybeChangelogUrl = `${baseHtml}#${compressedData}`; await flushEvents(); diff --git a/projects/rulesets-base/package.json b/projects/rulesets-base/package.json index 2b2b1285e0..a6eff8e9b1 100644 --- a/projects/rulesets-base/package.json +++ b/projects/rulesets-base/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/rulesets-base", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "1.0.0", + "version": "1.0.1", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/standard-rulesets/package.json b/projects/standard-rulesets/package.json index a89a4cd66d..3de20a0949 100644 --- a/projects/standard-rulesets/package.json +++ b/projects/standard-rulesets/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/standard-rulesets", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "1.0.0", + "version": "1.0.1", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/yarn.lock b/yarn.lock index 89a4dea302..1225e05ae3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3783,7 +3783,7 @@ __metadata: "@types/semver": "npm:^7.3.10" "@useoptic/json-pointer-helpers": "workspace:*" "@useoptic/openapi-utilities": "workspace:*" - ajv: "npm:^8.6.0" + ajv: "npm:8.17.1" ajv-errors: "npm:~3.0.0" ajv-formats: "npm:~2.1.0" babel-jest: "npm:^29.3.1" @@ -3895,7 +3895,7 @@ __metadata: "@useoptic/openapi-utilities": "workspace:*" "@useoptic/rulesets-base": "workspace:*" "@useoptic/standard-rulesets": "workspace:*" - ajv: "npm:^8.6.0" + ajv: "npm:8.17.1" ajv-formats: "npm:~2.1.0" async-exit-hook: "npm:^2.0.1" axax: "npm:^0.2.2" @@ -4158,6 +4158,18 @@ __metadata: languageName: node linkType: hard +"ajv@npm:8.17.1": + version: 8.17.1 + resolution: "ajv@npm:8.17.1" + dependencies: + fast-deep-equal: "npm:^3.1.3" + fast-uri: "npm:^3.0.1" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + checksum: 10c0/ec3ba10a573c6b60f94639ffc53526275917a2df6810e4ab5a6b959d87459f9ef3f00d5e7865b82677cb7d21590355b34da14d1d0b9c32d75f95a187e76fff35 + languageName: node + linkType: hard + "ajv@npm:^8.0.0, ajv@npm:^8.6.3, ajv@npm:^8.8.2": version: 8.11.0 resolution: "ajv@npm:8.11.0" @@ -6330,6 +6342,13 @@ __metadata: languageName: node linkType: hard +"fast-uri@npm:^3.0.1": + version: 3.0.1 + resolution: "fast-uri@npm:3.0.1" + checksum: 10c0/3cd46d6006083b14ca61ffe9a05b8eef75ef87e9574b6f68f2e17ecf4daa7aaadeff44e3f0f7a0ef4e0f7e7c20fc07beec49ff14dc72d0b500f00386592f2d10 + languageName: node + linkType: hard + "fastify@npm:^4.17.0": version: 4.26.2 resolution: "fastify@npm:4.26.2"