Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Verbose output during build? #334

Closed
Closed
@TazmanianD

Description

@TazmanianD

Is this a bug report?

Maybe?

Can you also reproduce the problem with npm 4.x?

Yes, we're using npm 4.2.0.

Which terms did you search for in User Guide?

"verbose", "output", "message"

Environment

Node 7.9.0, Npm 4.2.0, react-script-ts 2.16.0, TypeScript 7.9.1

Windows 7

Steps to Reproduce

I have just upgraded from react-script-ts 2.8.0 to 2.16.0 and suddenly we're getting massive amounts of verbose output or messages during a build. It appears to be verbose or debug output from the compiler describing how it is resolving resolving dependencies. Is this expected and if so, is there a way to disable it? In our case, this is producing 15,000 lines of output content which does not appear useful. The only change I made was upgrading the version of react-script-ts (including creating an simple tslint.json and a tsconfig.prod.json).

The build does complete successfully and ends with the "Compiled successfully." message along with the stats about the output. Previously, that info was the only thing output during the build.

Here is a snippet of the top of our output.

> [email protected] build C:\Work\Journeys\radar\client
> react-scripts-ts build

Creating an optimized production build...
Starting type checking and linting service...
Using �[1m1 worker�[22m with �[1m2048MB�[22m memory limit
ts-loader: Using [email protected] and C:\Work\Journeys\radar\client\tsconfig.prod.json
======== Resolving type reference directive 'body-parser', containing file 'C:/Work/Journeys/radar/client/__inferred type names__.ts', root directory 'C:/Work/Journeys/radar/node_modules/@types,C:/Work/Journeys/radar/client/node_modules/@types'. ========
Resolving with primary search path 'C:/Work/Journeys/radar/node_modules/@types, C:/Work/Journeys/radar/client/node_modules/@types'.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
'package.json' has 'main' field '' that references 'C:/Work/Journeys/radar/node_modules/@types/body-parser'.
Found 'package.json' at 'C:/Work/Journeys/radar/node_modules/@types/body-parser/package.json'. Package ID is '@types/body-parser/[email protected]'.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
File 'C:/Work/Journeys/radar/node_modules/@types/body-parser/index.d.ts' exist - use it as a name resolution result.
Resolving real path for 'C:/Work/Journeys/radar/node_modules/@types/body-parser/index.d.ts', result 'C:/Work/Journeys/radar/node_modules/@types/body-parser/index.d.ts'.
======== Type reference directive 'body-parser' was successfully resolved to 'C:/Work/Journeys/radar/node_modules/@types/body-parser/index.d.ts', primary: true. ========
======== Resolving type reference directive 'chai', containing file 'C:/Work/Journeys/radar/client/__inferred type names__.ts', root directory 'C:/Work/Journeys/radar/node_modules/@types,C:/Work/Journeys/radar/client/node_modules/@types'. ========
Resolving with primary search path 'C:/Work/Journeys/radar/node_modules/@types, C:/Work/Journeys/radar/client/node_modules/@types'.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
'package.json' has 'main' field '' that references 'C:/Work/Journeys/radar/node_modules/@types/chai'.
Found 'package.json' at 'C:/Work/Journeys/radar/node_modules/@types/chai/package.json'. Package ID is '@types/chai/[email protected]'.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
File 'C:/Work/Journeys/radar/node_modules/@types/chai/index.d.ts' exist - use it as a name resolution result.
Resolving real path for 'C:/Work/Journeys/radar/node_modules/@types/chai/index.d.ts', result 'C:/Work/Journeys/radar/node_modules/@types/chai/index.d.ts'.
======== Type reference directive 'chai' was successfully resolved to 'C:/Work/Journeys/radar/node_modules/@types/chai/index.d.ts', primary: true. ========
...

Expected Behavior

No massive amounts of output.

Actual Behavior

Massive amounts of output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions