Skip to content

Commit

Permalink
Merge pull request #844 from sarangan12/Issue800
Browse files Browse the repository at this point in the history
Api-Extractor fails to create review folder
  • Loading branch information
sarangan12 authored Jan 21, 2021
2 parents b394132 + 6563c1c commit bfef180
Show file tree
Hide file tree
Showing 78 changed files with 234 additions and 156 deletions.
5 changes: 3 additions & 2 deletions src/generators/static/packageFileGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export function generatePackageJson(
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
mkdirp: "^1.0.4"
},
// TODO: Calculate the SDK path for the package
homepage: `https://github.com/Azure/azure-sdk-for-js`,
Expand All @@ -73,7 +74,7 @@ export function generatePackageJson(
],
scripts: {
build:
"tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
minify: `uglifyjs -c -m --comments --source-map "content='./dist/${packageDetails.nameWithoutScope}.js.map'" -o ./dist/${packageDetails.nameWithoutScope}.min.js ./dist/${packageDetails.nameWithoutScope}.js`,
prepack: "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/additionalProperties/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/additional-properties.js.map'\" -o ./dist/additional-properties.min.js ./dist/additional-properties.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -42,7 +43,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/appconfiguration.js.map'\" -o ./dist/appconfiguration.min.js ./dist/appconfiguration.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -42,7 +43,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/appconfiguration.js.map'\" -o ./dist/appconfiguration.min.js ./dist/appconfiguration.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/arrayConstraints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/array-constraints-client.js.map'\" -o ./dist/array-constraints-client.min.js ./dist/array-constraints-client.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/azure-parameter-grouping.js.map'\" -o ./dist/azure-parameter-grouping.min.js ./dist/azure-parameter-grouping.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/azureReport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/zzzAzureReport.js.map'\" -o ./dist/zzzAzureReport.min.js ./dist/zzzAzureReport.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/azure-special-properties.js.map'\" -o ./dist/azure-special-properties.min.js ./dist/azure-special-properties.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyArray/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-array.js.map'\" -o ./dist/body-array.min.js ./dist/body-array.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyBoolean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-boolean.js.map'\" -o ./dist/body-boolean.min.js ./dist/body-boolean.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyBooleanQuirks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-boolean-quirks.js.map'\" -o ./dist/body-boolean-quirks.min.js ./dist/body-boolean-quirks.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyByte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-byte.js.map'\" -o ./dist/body-byte.min.js ./dist/body-byte.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyComplex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-complex.js.map'\" -o ./dist/body-complex.min.js ./dist/body-complex.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -43,7 +44,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-complex-tracing.js.map'\" -o ./dist/body-complex-tracing.min.js ./dist/body-complex-tracing.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyDate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-date.js.map'\" -o ./dist/body-date.min.js ./dist/body-date.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyDateTime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-datetime.js.map'\" -o ./dist/body-datetime.min.js ./dist/body-datetime.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyDateTimeRfc1123/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-datetime-rfc1123.js.map'\" -o ./dist/body-datetime-rfc1123.min.js ./dist/body-datetime-rfc1123.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyDictionary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-dictionary.js.map'\" -o ./dist/body-dictionary.min.js ./dist/body-dictionary.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyDuration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-duration.js.map'\" -o ./dist/body-duration.min.js ./dist/body-duration.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyFile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-file.js.map'\" -o ./dist/body-file.min.js ./dist/body-file.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
5 changes: 3 additions & 2 deletions test/integration/generated/bodyFormData/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
"@microsoft/api-extractor": "7.9.10",
"mkdirp": "^1.0.4"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
Expand All @@ -38,7 +39,7 @@
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/body-formdata.js.map'\" -o ./dist/body-formdata.min.js ./dist/body-formdata.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
Expand Down
Loading

0 comments on commit bfef180

Please # to comment.