Skip to content

Commit

Permalink
Don't auto update api version in samples (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored Feb 8, 2023
1 parent c412132 commit 1ee59bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
update-version:
@echo "$(VERSION)" > VERSION
@perl -pi -e 's|"version": "[.\-\d\w]+"|"version": "$(VERSION)"|' package.json
@find . -name 'package.json' -exec perl -pi -e 's|"stripe": "[\^\d\w.]*?"|"stripe": "^$(VERSION)"|' {} +

codegen-format:
yarn && yarn fix && yarn build
5 changes: 1 addition & 4 deletions scripts/updateAPIVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ const main = () => {

replaceAPIVersion('README.md', 'apiVersion: [\'"]API_VERSION[\'"]');
replaceAPIVersion('package.json', '"types": "types/API_VERSION/index.d.ts');
replaceAPIVersion(
'examples/webhook-signing/typescript-node-express/express-ts.ts',
'apiVersion: [\'"]API_VERSION[\'"]'
);

replaceAPIVersion(
'types/lib.d.ts',
'export type LatestApiVersion = [\'"]API_VERSION[\'"]'
Expand Down

0 comments on commit 1ee59bb

Please sign in to comment.