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

Why does basetag only work as dependency but not devDependency? #19

Open
winston0410 opened this issue Dec 14, 2020 · 2 comments
Open

Comments

@winston0410
Copy link

Hi, I have just tried out this awesome package, and it works great! However one thing I notice is that I doesn't work when I install it as devDependency.

Why is that? If I am correct, postinstall script would execute regardless a package being dependency or devDependency.

@janniks
Copy link
Owner

janniks commented Dec 15, 2020

I wasn't aware of this. But thanks for the report.

We are working on an improved version of basetag, that should resolve this and some other problems. Will be ready in a few weeks.

@coolaj86
Copy link
Contributor

What's the command you're using when you install?

This should work:

pushd ~/my-project
npm ci

However, I'd recommend that you NOT install it as a devDependency - unless you're "debase"ing your files for each commit.

Otherwise when you run npm ci --only=production, your requires will break in production.

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

3 participants