Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6985589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:41:59+00:00 2026-05-27T18:41:59+00:00

The devDependencies section of npm’s package.json documentation says to list your test dependencies there

  • 0

The devDependencies section of npm’s package.json documentation says to list your test dependencies there so that users of your package don’t have to pull down extra dependencies. Would it make sense to also add my test directory to .npmignore in that case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:41:59+00:00Added an answer on May 27, 2026 at 6:41 pm

    Yes that’s what most people do, here are some npmignore files for popular Node.js modules:

    https://github.com/socketio/socket.io/blob/ab46351a8446516fb4eea3b8333f7c0f18afaac5/.npmignore

    Other people allowlist what they want published in their package.json files setting:

    https://github.com/senchalabs/connect/blob/master/package.json

    https://github.com/strongloop/express/blob/master/package.json

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What could be wrong here? /opt/local/lib/node/.npm/embedly/0.3.2/package/package.json:1 name: embedly ^ node.js:134 throw e; // process.nextTick
I have this in my package.json file (shortened version): { name: a-module, version: 0.0.1,
I have a module that is used by creating a custom class loader. The
I'm using lein to manage my project, and I have a number of :dependencies
I have a simple web app with this project.clj: (defproject squirrel-money 1.0.0-SNAPSHOT :description Squirrel
While using Leiningen, I got the following abrupt error: Exception in thread main java.lang.NoSuchMethodError:
I'm working on a django application on the bitnami djangostack. I want to use
this is my project.clj file: (defproject org.github.pistacchio.deviantchecker 0.9.0 :description A one page application for
I'm porting working Clojure code (in a Leiningen project) from 1.2 to 1.3 and
I ran my tests from the root folder of my app. The tests lay

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.