Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/testing-asymmetrical-bin-no-lock.js

raw
1 // generated from test/fixtures/testing-asymmetrical-bin-no-lock
2 module.exports = t => {
3 const path = t.testdir({
4 "a": {
5 "package.json": JSON.stringify({
6 "name": "a",
7 "version": "1.0.0",
8 "description": "",
9 "main": "index.js",
10 "scripts": {
11 "test": "echo \"Error: no test specified\" && exit 1"
12 },
13 "keywords": [],
14 "author": "",
15 "license": "ISC",
16 "dependencies": {
17 "@ruyadorno/package-with-added-bin": "^1.0.0"
18 }
19 })
20 },
21 "b": {
22 "file.js": `#!/usr/bin/env node
23
24 console.log('foo')
25 `,
26 "package.json": JSON.stringify({
27 "name": "b",
28 "version": "1.0.0",
29 "description": "",
30 "main": "index.js",
31 "scripts": {
32 "test": "echo \"Error: no test specified\" && exit 1"
33 },
34 "bin": {
35 "b": "file.js"
36 },
37 "keywords": [],
38 "author": "",
39 "license": "ISC",
40 "dependencies": {
41 "@ruyadorno/package-with-added-bin": "^2.0.0"
42 }
43 })
44 },
45 "package.json": JSON.stringify({
46 "name": "test-bin-added-transitive-deps",
47 "version": "1.0.0",
48 "description": "",
49 "main": "index.js",
50 "scripts": {
51 "test": "echo \"Error: no test specified\" && exit 1"
52 },
53 "keywords": [],
54 "author": "",
55 "license": "ISC",
56 "dependencies": {
57 "a": "file:a",
58 "b": "file:b"
59 }
60 })
61 })
62 return path
63 }