Skip to content

Visual Studio 2015.2 Integration: Publish Fails with tsconfig.json #8707

@olohmann

Description

@olohmann

TypeScript Version:

1.8.31.0

Visual Studio Version:

VS 2015 Enterprise
14.0.25.123.00 Update 2

Description:
The scenario is as follows: A simple Visual Studio web project with a tsconfig.json file and two TypeScript source files: foo.ts and fooBar.ts. tsconfig.json is configured to compile all .ts artifacts into a single app.js file (using compilerOptions.outFile). When trying to publish the project, the following error is reported: "Copying file foo.js to obj\Release\Package\PackageTmp\foo.js failed. Could not find file 'foo.js'."

I guess the publish process looks for a matching .js file for each .ts file and is not able to follow the tsconfig.json settings.

Full Repro available: https://github.com/olohmann/VisualStudioTypeScriptPublishIssue

Expected behavior:
Publish works as expected.

Actual behavior:
Publish fails.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions