Skip to content

Commit

Permalink
fix(javascript): update template to include correct dependency version (
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjae-lee committed Apr 5, 2022
1 parent 1b0759d commit ebafcf3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clients/algoliasearch-client-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:size": "bundlesize",
"test:lint": "eslint . --ext .js,.ts",
"test:types": "yarn tsc --noEmit",
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --yes",
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --yes",
"release:publish": "ts-node scripts/publish.ts"
},
"devDependencies": {
Expand Down
6 changes: 5 additions & 1 deletion scripts/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import execa from 'execa'; // https://github.com/sindresorhus/execa/tree/v5.1.1
import { hashElement } from 'folder-hash';
import { remove } from 'fs-extra';

import clientsConfig from '../config/clients.config.json';
import openapitools from '../openapitools.json';

import { createSpinner } from './oraLog';
Expand All @@ -31,7 +32,10 @@ export const GENERATORS: Record<string, Generator> = {
key: 'javascript-algoliasearch',
additionalProperties: {
packageName: '@experimental-api-clients-automation/algoliasearch',
packageVersion: '0.0.5',
packageVersion:
openapitools['generator-cli'].generators[
clientsConfig.javascript.mainPackage
].additionalProperties.packageVersion,
},
},
};
Expand Down
6 changes: 3 additions & 3 deletions templates/javascript/package.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"node": ">= 14.0.0"
},
"dependencies": {
"@experimental-api-clients-automation/client-common": "0.0.5",
"@experimental-api-clients-automation/requester-browser-xhr": "0.0.5",
"@experimental-api-clients-automation/requester-node-http": "0.0.5"
"@experimental-api-clients-automation/client-common": "^0.0.5",
"@experimental-api-clients-automation/requester-browser-xhr": "^0.0.5",
"@experimental-api-clients-automation/requester-node-http": "^0.0.5"
},
"devDependencies": {
"@types/node": "16.11.26",
Expand Down

0 comments on commit ebafcf3

Please sign in to comment.