@darraghor/nest-backend-libs 1.26.0 → 1.27.0
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
rm -rf
|
|
3
|
-
rm -rf
|
|
4
|
-
npx @openapitools/openapi-generator-cli generate -i ./open-api/swagger.json -g typescript-fetch -o
|
|
5
|
-
cp ./node_modules/@darraghor/nest-backend-libs/dist/open-api-generation/api-client-templates/api-client-ts-config-template.json
|
|
6
|
-
cp ./node_modules/@darraghor/nest-backend-libs/dist/open-api-generation/api-client-templates/package-json-template.json
|
|
7
|
-
cd
|
|
2
|
+
rm -rf $1/src
|
|
3
|
+
rm -rf $1/dist
|
|
4
|
+
npx @openapitools/openapi-generator-cli generate -i ./open-api/swagger.json -g typescript-fetch -o $1 --additional-properties=typescriptThreePlus=true,withInterfaces=true,npmName=shared-api-client,supportsES6=true,modelPropertyNaming=original,enumPropertyNaming=original
|
|
5
|
+
cp ./node_modules/@darraghor/nest-backend-libs/dist/open-api-generation/api-client-templates/api-client-ts-config-template.json $1/tsconfig.json
|
|
6
|
+
cp ./node_modules/@darraghor/nest-backend-libs/dist/open-api-generation/api-client-templates/package-json-template.json $1/package.json
|
|
7
|
+
cd $1
|
|
8
8
|
yarn
|
|
9
9
|
|
|
10
10
|
# install latest into the client
|
|
11
|
-
cd
|
|
11
|
+
cd $2
|
|
12
12
|
rm -rf ./node_modules/shared-api-client
|
|
13
13
|
yarn install --check-files
|
|
14
14
|
|
|
15
15
|
# install latest into the e2e tests
|
|
16
|
-
cd
|
|
16
|
+
cd $3
|
|
17
17
|
rm -rf ./node_modules/shared-api-client
|
|
18
18
|
yarn install --check-files
|
package/package.json
CHANGED