Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ function regularAutorestPackage(
"dist/",
"README.md",
"LICENSE",
"review/*",
"CHANGELOG.md",
],
scripts: {
build:
Expand Down
2 changes: 1 addition & 1 deletion packages/autorest.typescript/test/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function runAutorest(
console.log(`=== Start ${title} ===`);
const childProcess = spawn(autorestCommand, commandArguments, {
stdio: [process.stdin, process.stdout, process.stderr],
shell: process.platform === "win32"
shell: true
});

console.log(`${autorestCommand} ${commandArguments.join(" ")}`);
Expand Down
12 changes: 8 additions & 4 deletions packages/autorest.typescript/test/commands/smoke-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ const buildGenerated = async (projectPath?: string) => {
const npmCommand = `npm${/^win/.test(process.platform) ? ".cmd" : ""}`;
const npmInstall = spawn(npmCommand, ["install"], {
stdio: [process.stdin, process.stdout, process.stderr],
cwd: projectPath
cwd: projectPath,
shell: true
});
await onExit(npmInstall);

const npmBuild = spawn(npmCommand, ["run", "build"], {
stdio: [process.stdin, process.stdout, process.stderr],
cwd: projectPath
cwd: projectPath,
shell: true
});

await onExit(npmBuild);
Expand Down Expand Up @@ -170,7 +172,8 @@ const removeTransform = async (path: string): Promise<unknown> => {
path = path.replace("./.tmp/specs/", "");
const childProdcess = spawn("git", ["checkout", path], {
cwd: SPECS_PATH,
stdio: [process.stdin, process.stdout, process.stderr]
stdio: [process.stdin, process.stdout, process.stderr],
shell: true
});
return await onExit(childProdcess);
};
Expand Down Expand Up @@ -262,7 +265,8 @@ const checkoutBranch = async (branch?: string) => {
["checkout", branch || DEFAULT_SPEC_BRANCH],
{
cwd: SPECS_PATH,
stdio: [process.stdin, process.stdout, process.stderr]
stdio: [process.stdin, process.stdout, process.stderr],
shell: true
}
);
return await onExit(childProdcess);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ const buildAutorest = () => {
}
const childProcess = spawn("npm run build", {
stdio: [process.stdin, process.stdout, process.stderr],
shell: process.platform === "win32"
shell: true
});

return onExit(childProcess);
Expand All @@ -1273,7 +1273,7 @@ const buildAutorest = () => {
const logAutorestInfo = async () => {
const childProcess = spawn("autorest", ["--info"], {
stdio: [process.stdin, process.stdout, process.stderr],
shell: process.platform === "win32"
shell: true
});
await onExit(childProcess);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && tshy && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && tshy && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": ["dist/", "README.md", "LICENSE", "review/*", "CHANGELOG.md"],
"files": ["dist/", "README.md", "LICENSE"],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"prepack": "npm run build",
Expand Down
Loading
Loading