Skip to content

First step toward using the new typescript tasks in WBT. - #791

Merged
Ian Clanton-Thuon (iclanton) merged 10 commits into
masterfrom
ianc/tsc-in-wbt
Aug 29, 2018
Merged

Ian Clanton-Thuon (iclanton) merged 10 commits into
masterfrom
ianc/tsc-in-wbt

Conversation

@iclanton

Copy link
Copy Markdown
Member

No description provided.

@@ -0,0 +1,4 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../../rush-stack-compiler/includes/tsconfig-node.json"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

../../rush-stack-compiler [](start = 14, length = 25)

Seems like this may not point to the right location, depending on how the package manager chooses to install rush-stack. Possible options:

  1. Improve the compiler to support NPM resolution like what tslint.json does. This would need to be done for any other config files tied to rush-stack-compiler

  2. Use a postInstall script to perform NPM resolution, and write .json files into the rush-stack-compiler folder to perform redirection.

  3. Keep it simple: Have the project's tsconfig.json extend from a direct dependency (e.g. rush-stack-compiler or rig-compiler). If the rig-compiler wants to inherit from rush-stack-compiler, use a build step to make a static copy of the file contents, rather than trying to follow multiple hops through the node_modules folder.

I think # 3 might be the safest bet, although the other options are interesting.

@@ -0,0 +1,18 @@
{
"$schema": "http://json.schemastore.org/tsconfig",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be versioned?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't appear so.

@@ -1,61 +0,0 @@
// Type definitions for read-package-tree 5.1.2

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitions [](start = 8, length = 11)

This file definitely seems to be used by src\logic\npm\NpmLinkManager.ts

@@ -1,15 +0,0 @@
// Type definitions for wordwrap 1.0.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// [](start = 0, length = 2)

Pretty sure this is also used

@@ -1,194 +0,0 @@
/**

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't delete these. This is what we're testing -- basically I'm looking for diffs in this file when I make changes to the *.d.ts generator (even though it's not validated by the build)

// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.

/// <reference path="../typings/tsd.d.ts" />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is part of the test

@octogonz Pete Gonzalez (octogonz) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants