From a483121091a36bffa9b5b894a7e7aa0c2ad66e0b Mon Sep 17 00:00:00 2001 From: Luis Merino Date: Wed, 3 May 2023 12:08:02 +0200 Subject: [PATCH] Fix openapi-type-fetch prepare script for Windows (#13) --- .changeset/cool-ghosts-attend.md | 5 +++++ .github/workflows/release.yaml | 1 + package.json | 2 +- packages/js-client-rest/package.json | 3 +-- packages/js-client-rest/tsconfig.json | 2 +- pnpm-lock.yaml | 15 ++++----------- 6 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 .changeset/cool-ghosts-attend.md diff --git a/.changeset/cool-ghosts-attend.md b/.changeset/cool-ghosts-attend.md new file mode 100644 index 0000000..3098924 --- /dev/null +++ b/.changeset/cool-ghosts-attend.md @@ -0,0 +1,5 @@ +--- +'@qdrant/js-client-rest': patch +--- + +Fix npm install script of dependency for Windows envs diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b594482..b83f61a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -47,6 +47,7 @@ jobs: id: changesets uses: changesets/action@v1 with: + version: pnpm ci:version publish: pnpm ci:release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 4d1a75b..ca512f3 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "packageManager": "pnpm@8.3.0", "scripts": { "prepare": "node ./prepare.cjs && pnpm -r build", - "version": "pnpm changeset version && pnpm install --lockfile-only", + "ci:version": "pnpm changeset version && pnpm install --no-frozen-lockfile && git add .", "ci:release": "pnpm changeset publish" }, "devDependencies": { diff --git a/packages/js-client-rest/package.json b/packages/js-client-rest/package.json index cab1979..6908029 100644 --- a/packages/js-client-rest/package.json +++ b/packages/js-client-rest/package.json @@ -61,13 +61,12 @@ }, "dependencies": { "@sevinf/maybe": "0.5.0", - "openapi-typescript-fetch": "Rendez/openapi-typescript-fetch#ea89f6480e498ec022e2f2f67f85004eb54e6f54" + "openapi-typescript-fetch": "Rendez/openapi-typescript-fetch#c114c381602b9b3891f0ec45dbc5409816743dad" }, "devDependencies": { "@rollup/plugin-node-resolve": "15.0.2", "@rollup/plugin-replace": "5.0.2", "@rollup/plugin-terser": "0.4.0", - "@total-typescript/ts-reset": "0.4.2", "@types/node": "18.15.11", "@typescript-eslint/eslint-plugin": "5.57.0", "@typescript-eslint/parser": "5.57.0", diff --git a/packages/js-client-rest/tsconfig.json b/packages/js-client-rest/tsconfig.json index 737566d..b97cc43 100644 --- a/packages/js-client-rest/tsconfig.json +++ b/packages/js-client-rest/tsconfig.json @@ -4,7 +4,7 @@ "declaration": true, "declarationDir": "./dist/types", "outDir": "./dist/esm", - "types": ["node", "vitest/importMeta", "@total-typescript/ts-reset"] + "types": ["node", "vitest/importMeta"] }, "include": ["src", "tests", "examples", "vite.config.ts", "vite.integration.config.ts", "rollup.config.js"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1ac3695..954c25f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,8 +63,8 @@ importers: specifier: 0.5.0 version: 0.5.0 openapi-typescript-fetch: - specifier: Rendez/openapi-typescript-fetch#ea89f6480e498ec022e2f2f67f85004eb54e6f54 - version: github.com/Rendez/openapi-typescript-fetch/ea89f6480e498ec022e2f2f67f85004eb54e6f54 + specifier: Rendez/openapi-typescript-fetch#c114c381602b9b3891f0ec45dbc5409816743dad + version: github.com/Rendez/openapi-typescript-fetch/c114c381602b9b3891f0ec45dbc5409816743dad devDependencies: '@rollup/plugin-node-resolve': specifier: 15.0.2 @@ -75,9 +75,6 @@ importers: '@rollup/plugin-terser': specifier: 0.4.0 version: 0.4.0(rollup@3.20.2) - '@total-typescript/ts-reset': - specifier: 0.4.2 - version: 0.4.2 '@types/node': specifier: 18.15.11 version: 18.15.11 @@ -910,10 +907,6 @@ packages: resolution: {integrity: sha512-ARhyoYDnY1LES3vYI0fiG6e9esWfTNcXcO6+MPJJXcnyMV3bim4lnFt45VXouV7y82F4x3YH8nOQ6VztuvUiWg==} dev: false - /@total-typescript/ts-reset@0.4.2: - resolution: {integrity: sha512-vqd7ZUDSrXFVT1n8b2kc3LnklncDQFPvR58yUS1kEP23/nHPAO9l1lMjUfnPrXYYk4Hj54rrLKMW5ipwk7k09A==} - dev: true - /@ts-morph/common@0.12.3: resolution: {integrity: sha512-4tUmeLyXJnJWvTFOKtcNJ1yh0a3SsTLi2MUoyj8iUNznFRN1ZquaNe7Oukqrnki2FzZkm0J9adCNLDZxUzvj+w==} dependencies: @@ -4181,8 +4174,8 @@ packages: engines: {node: '>=12.20'} dev: true - github.com/Rendez/openapi-typescript-fetch/ea89f6480e498ec022e2f2f67f85004eb54e6f54: - resolution: {tarball: https://codeload.github.com/Rendez/openapi-typescript-fetch/tar.gz/ea89f6480e498ec022e2f2f67f85004eb54e6f54} + github.com/Rendez/openapi-typescript-fetch/c114c381602b9b3891f0ec45dbc5409816743dad: + resolution: {tarball: https://codeload.github.com/Rendez/openapi-typescript-fetch/tar.gz/c114c381602b9b3891f0ec45dbc5409816743dad} name: openapi-typescript-fetch version: 1.1.3 engines: {node: '>= 12.0.0', npm: '>= 6.0.0'}