api 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,7 +154,7 @@ var TSGenerator = /** @class */ (function (_super) {
154
154
  // This will install the installed SDK as a dependency within the current working directory,
155
155
  // adding `@api/<sdk identifier>` as a dependency there so you can load it with
156
156
  // `require('@api/<sdk identifier>)`.
157
- return [2 /*return*/, (0, execa_1["default"])('npm', __spreadArray([], npmInstall, true).filter(Boolean), { cwd: storage.getIdentifierStorageDir() }).then(function (res) {
157
+ return [2 /*return*/, (0, execa_1["default"])('npm', __spreadArray([], npmInstall, true).filter(Boolean)).then(function (res) {
158
158
  if (opts.dryRun) {
159
159
  (opts.logger ? opts.logger : logger_1["default"])(res.command);
160
160
  (opts.logger ? opts.logger : logger_1["default"])(res.stdout);
@@ -1,2 +1,2 @@
1
1
  export declare const PACKAGE_NAME = "api";
2
- export declare const PACKAGE_VERSION = "5.0.0";
2
+ export declare const PACKAGE_VERSION = "5.0.1";
@@ -3,4 +3,4 @@ exports.__esModule = true;
3
3
  exports.PACKAGE_VERSION = exports.PACKAGE_NAME = void 0;
4
4
  // This file is automatically updated by the build script.
5
5
  exports.PACKAGE_NAME = 'api';
6
- exports.PACKAGE_VERSION = '5.0.0';
6
+ exports.PACKAGE_VERSION = '5.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Magical SDK generation from an OpenAPI definition 🪄",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -105,5 +105,5 @@
105
105
  "test/"
106
106
  ]
107
107
  },
108
- "gitHead": "bb044ecdb3296c24838056764553fa7f18e6d228"
108
+ "gitHead": "81bb654e395fce5aefaeb8228666faa6e1f3f09d"
109
109
  }
@@ -142,7 +142,7 @@ export default class TSGenerator extends CodeGeneratorLanguage {
142
142
  // This will install the installed SDK as a dependency within the current working directory,
143
143
  // adding `@api/<sdk identifier>` as a dependency there so you can load it with
144
144
  // `require('@api/<sdk identifier>)`.
145
- return execa('npm', [...npmInstall].filter(Boolean), { cwd: storage.getIdentifierStorageDir() }).then(res => {
145
+ return execa('npm', [...npmInstall].filter(Boolean)).then(res => {
146
146
  if (opts.dryRun) {
147
147
  (opts.logger ? opts.logger : logger)(res.command);
148
148
  (opts.logger ? opts.logger : logger)(res.stdout);
@@ -1,3 +1,3 @@
1
1
  // This file is automatically updated by the build script.
2
2
  export const PACKAGE_NAME = 'api';
3
- export const PACKAGE_VERSION = '5.0.0';
3
+ export const PACKAGE_VERSION = '5.0.1';