Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

*.d.ts, *.js, and *.metadata.json files are getting generated in my src directory when using angular 2 barrels #136

Closed
@tadchristiansenli

Description

@tadchristiansenli

*.d.ts, *.js, and *.metadata.json files are getting generated in my src directory when using angular 2 barrels. If I remove the barrel, then they are not generated in the src directory.

It would be nice if they were not put in the src directory because when you try and build again the linter and the build fails because it is not expecting those files to be there.

Steps to reproduce:

  1. Create a barrel for a one of your ts files (I tried putting it both outside and inside the source directory and still had the issue)
  2. Update you other ts files to use the barrel to import the class in the ts file.
  3. Run "ionic run android"

Result
*.d.ts, *.js, and *.metadata.json files are get generate next to the *.ts files in the src directory (at least the ones using barrels do)

"scripts": {
    "build": "ionic-app-scripts build",
    "watch": "ionic-app-scripts watch",
    "serve:before": "watch",
    "emulate:before": "build",
    "deploy:before": "build",
    "build:before": "build",
    "run:before": "build"
  },
  "config": {
    "ionic_rollup": "./scripts/rollup.config.js"
  }

Which @ionic/app-scripts version are you using?
ionic CLI 2.1.0
ionic 2 RC0
angular 2.0.1
@ionic/app-scripts 0.0.30 (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions