Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/prune-dev-bins.js

raw
1 // generated from test/fixtures/prune-dev-bins
2 module.exports = t => {
3 const path = t.testdir({
4 "node_modules": {
5 ".bin": {
6 "yes": process.platform === 'win32' ? '' : t.fixture('symlink', "../yes/yes.js"),
7 "yes.cmd": "PLAIN FILE\n"
8 },
9 "yes": {
10 "package.json": JSON.stringify({
11 "_from": "yes@^1.0.0",
12 "_id": "[email protected]",
13 "_inBundle": false,
14 "_integrity": "sha1-N9/SD0IJE5JlflhCN4pw2MGthuY=",
15 "_location": "/yes",
16 "_phantomChildren": {},
17 "_requested": {
18 "type": "range",
19 "registry": true,
20 "raw": "yes@^1.0.0",
21 "name": "yes",
22 "escapedName": "yes",
23 "rawSpec": "^1.0.0",
24 "saveSpec": null,
25 "fetchSpec": "^1.0.0"
26 },
27 "_requiredBy": [
28 "#DEV:/"
29 ],
30 "_resolved": "https://registry.npmjs.org/yes/-/yes-1.1.1.tgz",
31 "_shasum": "37dfd20f42091392657e5842378a70d8c1ad86e6",
32 "_spec": "yes@^1.0.0",
33 "_where": "/Users/claudiahdz/npm/arborist/test/fixtures/prune-dev-bins",
34 "author": {
35 "name": "Sequoia McDowell",
36 "email": "[email protected]",
37 "url": "https://sequoia.makes.software/"
38 },
39 "bin": {
40 "yes": "yes.js"
41 },
42 "bugs": {
43 "url": "https://github.com/Sequoia/yes/issues"
44 },
45 "bundleDependencies": false,
46 "contributors": [
47 {
48 "name": "Matt Nathan",
49 "url": "https://github.com/mattnathan"
50 }
51 ],
52 "deprecated": false,
53 "description": "outputs 'y' over and over (or another string if you pass one)",
54 "homepage": "https://github.com/Sequoia/yes#readme",
55 "keywords": [
56 "yes",
57 "cli",
58 "unix",
59 "modular",
60 "small-modules",
61 "such-modular",
62 "composable"
63 ],
64 "license": "GPL-3.0",
65 "name": "yes",
66 "repository": {
67 "type": "git",
68 "url": "git+https://github.com/Sequoia/yes.git"
69 },
70 "scripts": {
71 "test": "echo \"Error: todo: write tests\" && exit 1"
72 },
73 "version": "1.1.1"
74 }),
75 "yes.js": `#!/usr/bin/env node
76 var msg = process.argv.length > 2 ? process.argv[2] : 'y';
77
78 while(1){
79 if(!process.stdout.write(msg + '\\r\\n')){
80 process.exit(0);
81 }
82 }
83
84 `
85 }
86 },
87 "package.json": JSON.stringify({
88 "name": "prune-dev-bins",
89 "version": "1.0.0",
90 "devDependencies": {
91 "yes": "^1.0.0"
92 }
93 })
94 })
95 return path
96 }