Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy files in stencil.config is copying into collection folder #1139

Closed
Tallyb opened this issue Oct 10, 2018 · 1 comment
Closed

Copy files in stencil.config is copying into collection folder #1139

Tallyb opened this issue Oct 10, 2018 · 1 comment

Comments

@Tallyb
Copy link
Contributor

Tallyb commented Oct 10, 2018

Stencil version:

 @stencil/core@0.13.2

I'm submitting a:

[ X ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
when using the copy option on stencil.config - file is copied under the collection folder and not directly under the dist folder

Expected behavior:
one of 2 options:

  1. if this is unintentional - should copy to dist folder and not to collection
  2. if this is intentional - documentation should reflect it

Steps to reproduce:

  1. Add the following to stencil.config.js
copy: [
    {src: 'package.json', dest: 'package.json' }
  ],

(assumes you have a pakcage.json file in your src folder, but any file will do)
2) run build.
3) package.json will be under the /collection folder in dist folder.

@manucorporat
Copy link
Contributor

This should be fixed in Stencil one, as we have deprecated the global copy tasks and now they are local to each output target!

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

No branches or pull requests

2 participants