• Home
  • Raw
  • Download

Lines Matching full:package

11 var pkg = path.join(root, 'package')
21 name: 'package-local-dependency',
26 name: 'package-local-dev-dependency',
31 mkdirp.sync(path.join(root, 'package-local-dependency'))
33 path.join(root, 'package-local-dependency', 'package.json'),
37 mkdirp.sync(path.join(root, 'package-local-dev-dependency'))
39 path.join(root, 'package-local-dev-dependency', 'package.json'),
46 test('\'npm install --save ../local/path\' should save to package.json', function (t) {
53 'install', '../package-local-dependency'
60 pkg, 'node_modules', 'package-local-dependency', 'package.json'
64 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
67 /file:.*?[/]package-local-dependency$/.test(pkgJson.dependencies['package-local-dependency']),
68 'local package saved correctly'
73 test('\'npm install --save local/path\' should save to package.json', function (t) {
80 'install', 'package-local-dependency/'
87 pkg, 'node_modules', 'package-local-dependency', 'package.json'
91 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
94 /file:package-local-dependency$/.test(pkgJson.dependencies['package-local-dependency']),
95 'local package saved correctly'
100 test('\'npm install --save-dev ../local/path\' should save to package.json', function (t) {
107 'install', '../package-local-dev-dependency'
114 pkg, 'node_modules', 'package-local-dev-dependency', 'package.json'
118 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
121 …/file:.*?[/\\]package-local-dev-dependency$/.test(pkgJson.devDependencies['package-local-dev-depen…
122 'local package saved correctly'
129 test('\'npm install --save-dev local/path\' should save to package.json', function (t) {
136 'install', 'package-local-dev-dependency/'
143 pkg, 'node_modules', 'package-local-dev-dependency', 'package.json'
147 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
150 …/file:package-local-dev-dependency$/.test(pkgJson.devDependencies['package-local-dev-dependency']),
151 'local package saved correctly'
163 path.join(pkg, 'package.json'),
167 mkdirp.sync(path.join(pkg, 'package-local-dependency'))
169 path.join(pkg, 'package-local-dependency', 'package.json'),
173 mkdirp.sync(path.join(pkg, 'package-local-dev-dependency'))
175 path.join(pkg, 'package-local-dev-dependency', 'package.json'),