259 Commits

Author SHA1 Message Date
isaacs
ccc1e2e067 test: fixes to work with Windows 2014-08-20 23:14:47 -07:00
bcoe
dbf0cab29d you can now pass quoted args to run-script 2014-08-19 00:50:21 -07:00
isaacs
9243d20789 test lifecycle path modification 2014-08-14 13:35:39 -07:00
isaacs
1d5c41dd0d rename .gitignore when unpacking foreign tarballs
Fix #5658

Note that this doesn't actually *ignore* the files specified by the
.gitignore and/or .npmignore files.  That would likely require removing
them after the fact, as well as all the same logic that exists in
fstream-npm, since tar does not give us a directory listing, and
tarballs may have their files in any random order.
2014-08-13 12:20:51 -07:00
Forrest L Norvell
d987707442 move fetch into npm-registry-client
The primary purpose is so that everything doing network requests
includes auth, if so required. Sends bearer token by default, will send
HTTP Basic auth with `always-auth` set in the config.
2014-08-07 17:56:53 -07:00
isaacs
9ec3a39cfc Add a test to verify that 'npm ls' exits ok in npm repo 2014-07-31 17:59:06 -07:00
Adam Meadows
33ccd13d16 Don't squash execute perms in _git-remotes/ dir
A previous fix for https://github.com/npm/npm/issues/3117
explicitly set the permissions for all files to a hard-coded
value, regardless of what the permissions were previously.

This changes that behavior to *add* the permissions that were
previously being *set* so that existing execute permissions are
maintained.

This is a redo of the much more blunt solution attempted in
https://github.com/npm/npm/pull/5728
thanks to some very helpful feedback from @othiym23
2014-07-24 16:36:12 -07:00
isaacs
ea94d0677f test: fix ignore-install-link on windows
Was relying on using an administrator-owned global folder, which is a pita.
2014-07-23 11:30:03 -07:00
Forrest L Norvell
cd422c9de5 link binaries for scoped packages (fixes #5748) 2014-07-22 18:34:29 -07:00
bcoe
df4b0e7fc1 making it so that you can pass arguments to run-scripts. 2014-07-22 17:23:32 -07:00
isaacs
f4554e99d3 test: make config-meta test work on Windows 2014-07-21 14:24:01 -07:00
isaacs
7c71c8d09b upgrade npmconf and init-package-json
Adds support for 'init.version' config, and falling back to _auth
config as default auth when using default registry.
2014-07-18 14:17:19 -07:00
Forrest L Norvell
375988b9bf invalid names in optional deps are an early error
It's hard for me to construct a scenario where an optional dependency
with a plainly invalid name failing to install is actually useful to
anyone, so I nerfed the relevant line in the test.
2014-07-16 19:03:44 -07:00
Forrest L Norvell
a945f75789 simplify use of maybeGithub 2014-07-01 18:49:46 -07:00
Forrest L Norvell
2793877f5b opportunistic linting 2014-07-01 18:49:45 -07:00
Forrest L Norvell
0c007eefb5 switch to npm-package-arg from whatever that was 2014-07-01 18:49:45 -07:00
Forrest L Norvell
cfcbf34fe4 chasing down errant uses of old auth, part 1 2014-07-01 18:43:16 -07:00
Forrest L Norvell
0689ba249b use --scope to map scope to registry 2014-07-01 18:43:16 -07:00
Forrest L Norvell
33dd0afcb3 scope token to the registry 2014-07-01 18:16:43 -07:00
Forrest L Norvell
4b85f1e3db @scope:registry-base-url → @scope:registry 2014-07-01 18:16:43 -07:00
Forrest L Norvell
0df7e16c02 publish to scoped registries 2014-07-01 18:16:43 -07:00
Forrest L Norvell
7f55057807 first piece of @org/package module specifiers 2014-07-01 18:16:43 -07:00
isaacs
30b7eb9f2b Run the npm-registry-couchapp tests along with npm tests
This test will fail if couchdb isn't installed
2014-06-20 17:37:58 -07:00
isaacs
137ea44542 npmconf@1.0.5 2014-06-12 17:34:37 -07:00
isaacs
d998e73034 failing test: set global prefix in userconfig 2014-06-12 16:16:02 -07:00
isaacs
c535eddf30 github-url-from-username-repo and read-package-json updates
Prefer https:// git urls instead of git://
2014-06-05 23:10:21 -07:00
Forrest L Norvell
557e80d29f test to ensure deps and bundleDeps match 2014-05-23 11:03:30 -07:00
Evan You
05bf3a765b fix npm ls labeling issue 2014-05-22 18:02:44 -07:00
isaacs
e16cdb5c06 config-meta test: skip over missing files
Happens in dev, but the ignore file prevents it from happening in
an actual release.
2014-05-21 15:19:01 -07:00
isaacs
43b5eec98b npm-registry-client@1.0.0
Scope all cache files under the registry hostname, using the
npm-cache-filename module.

TODO: also store tarball files in the same spots, so that two
files from different registries don't clobber one another.
2014-05-14 16:20:30 -07:00
isaacs
a6cf37cbf2 fix test/tap/install-save-prefix.js 2014-05-14 13:51:46 -07:00
Evan Lucas
c46a13c008 Allow non-github repositories with npm repo 2014-05-11 17:54:01 -04:00
Tim Oxley
65f4cb39f2 Stop optional deps moving into deps on update --save
This probably undesirable behaviour stems from normalize-package-data:

> The values in optionalDependencies get added to dependencies. The
optionalDependencies array is left untouched.

Solution Caveat: regular dependencies that are also optional (does that
even make sense?) will not be updated with --save because there's no
way to detect which optional dependencies aren't also regular
dependencies – we just avoid updating anything optional during --save.
2014-05-11 05:18:46 +08:00
Tim Oxley
c8242a25a0 Test update + optional dependencies behaviour. 2014-05-11 05:08:19 +08:00
Tim Oxley
1f108b8a1f Add update --save/--save-dev tests. 2014-05-11 03:23:12 +08:00
Forrest L Norvell
235002da9d refactor maybe* methods to be more consistent 2014-05-07 18:00:51 -07:00
Forrest L Norvell
355bb7e0f3 refactor add* into separate files 2014-05-07 18:00:50 -07:00
isaacs
0de64345a7 fix test/tap/url-dependencies.js 2014-05-07 15:59:33 -07:00
isaacs
ee321aedd6 run-script: Support --parseable and --json
Also, add a test
2014-05-02 17:36:47 -07:00
isaacs
d02f0c8b0f trivial: typo in test message 2014-05-01 17:55:02 -07:00
isaacs
90b8427a30 send referer header 2014-05-01 16:12:09 -07:00
isaacs
e21c9c2fac cache: Fix typo bug (plus test) 2014-05-01 16:11:26 -07:00
isaacs
608cd20073 cache: Handle 404s and other HTTP errors as errors
Fix #4982
2014-04-30 12:21:20 -07:00
isaacs
44ed5943f1 test: simplify common.run() to common.npm() 2014-04-30 12:21:20 -07:00
isaacs
1053c97891 bump tap dep, make tests stderr a bit quieter 2014-04-28 16:30:01 -07:00
Robert Kowalski
7f35b195d6 Fix ls-depth-cli test
Some environments have a configured depth=x - if that depth is 0,
like on travis or any other possible machine, the test failed.

This passes Infinity, which is the current default in npmconf
2014-04-18 18:34:28 +02:00
Robert Kowalski
89bf6f260a Fix lifecycle test
The test in 8b5e7b6a fails as it depends on a unconfigured npm
which uses exact the same values as a vanilla npmconf instance.

This fix also does not depends on the external dependency npmconf.
2014-04-18 18:34:28 +02:00
Sean McGivern
e3a2ec4c72 Make npm install respect config.unicode
`npm ls` and `npm star` already do, just `npm install` was missed.
2014-04-18 16:31:46 +01:00
Yeonghoon Park
8b5e7b6ae5 Add test for lifecycle.makeEnv() 2014-04-18 00:04:04 -04:00
Domenic Denicola
530ee54e8e Fix startstop test.
I broke it with my changes to the common helper in 057d9b7815.
2014-04-18 00:03:01 -04:00