mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 23:43:33 +00:00 
			
		
		
		
	Merge branch 'master' of https://github.com/actions/setup-node into features/problem-matchers
This commit is contained in:
		
						commit
						a93f613f3a
					
				
							
								
								
									
										22
									
								
								.github/main.workflow.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.github/main.workflow.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| on: push | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: | ||||
|       pool: ${{ matrix.operating-system }} | ||||
|     strategy: | ||||
|       matrix: | ||||
|         operating-system: [Linux, macOS, Windows] | ||||
|     actions: | ||||
|     - name: Set Node.js 10.x | ||||
|       uses: bryanmacfarlane/node-config@master | ||||
|       with: | ||||
|         version: 10.x | ||||
| 
 | ||||
|     - name: npm install | ||||
|       run: npm prune --production && npm install | ||||
| 
 | ||||
|     - name: Lint | ||||
|       run: npm run format-check | ||||
| 
 | ||||
|     - name: npm test | ||||
|       run: npm test | ||||
							
								
								
									
										9
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,7 +1,2 @@ | ||||
| # runtime dependencies are checked in | ||||
| # dev dependencies are *not* checked in | ||||
| node_modules/.bin | ||||
| node_modules/typescript | ||||
| node_modules/@types | ||||
| node_modules/prettier | ||||
| __tests__/runner/* | ||||
| !node_modules/ | ||||
| __tests__/runner/* | ||||
|  | ||||
| @ -23,7 +23,7 @@ actions: | ||||
| 
 | ||||
| Matrix Testing: | ||||
| ```yaml | ||||
| workflow: | ||||
| jobs: | ||||
|   build: | ||||
|     strategy: | ||||
|       matrix: | ||||
| @ -44,4 +44,4 @@ The scripts and documentation in this project are released under the [MIT Licens | ||||
| 
 | ||||
| # Contributions | ||||
| 
 | ||||
| Contributions are welcome!  See [Contributor's Guide](docs/contributors.md) | ||||
| Contributions are welcome!  See [Contributor's Guide](docs/contributors.md) | ||||
| @ -3,29 +3,61 @@ import fs = require('fs'); | ||||
| import os = require('os'); | ||||
| import path = require('path'); | ||||
| 
 | ||||
| const toolDir = path.join(__dirname, 'runner', 'tools'); | ||||
| const tempDir = path.join(__dirname, 'runner', 'temp'); | ||||
| const toolDir = path.join( | ||||
|   process.cwd(), | ||||
|   'runner', | ||||
|   path.join( | ||||
|     Math.random() | ||||
|       .toString(36) | ||||
|       .substring(7) | ||||
|   ), | ||||
|   'tools' | ||||
| ); | ||||
| const tempDir = path.join( | ||||
|   process.cwd(), | ||||
|   'runner', | ||||
|   path.join( | ||||
|     Math.random() | ||||
|       .toString(36) | ||||
|       .substring(7) | ||||
|   ), | ||||
|   'temp' | ||||
| ); | ||||
| 
 | ||||
| process.env['RUNNER_TOOLSDIRECTORY'] = toolDir; | ||||
| process.env['RUNNER_TEMPDIRECTORY'] = tempDir; | ||||
| import * as installer from '../src/installer'; | ||||
| 
 | ||||
| const IS_WINDOWS = process.platform === 'win32'; | ||||
| 
 | ||||
| describe('installer tests', () => { | ||||
|   beforeAll(() => {}); | ||||
|   beforeAll(async () => { | ||||
|     await io.rmRF(toolDir); | ||||
|     await io.rmRF(tempDir); | ||||
|   }); | ||||
|   }, 100000); | ||||
| 
 | ||||
|   afterAll(async () => { | ||||
|     try { | ||||
|       await io.rmRF(toolDir); | ||||
|       await io.rmRF(tempDir); | ||||
|     } catch { | ||||
|       console.log('Failed to remove test directories'); | ||||
|     } | ||||
|   }, 100000); | ||||
| 
 | ||||
|   it('Acquires version of node if no matching version is installed', async () => { | ||||
|     await installer.getNode('10.16.0'); | ||||
|     const nodeDir = path.join(toolDir, 'node', '10.16.0', os.arch()); | ||||
| 
 | ||||
|     expect(fs.existsSync(`${nodeDir}.complete`)).toBe(true); | ||||
|     expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); | ||||
|     if (IS_WINDOWS) { | ||||
|       expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); | ||||
|     } else { | ||||
|       expect(fs.existsSync(path.join(nodeDir, 'bin', 'node'))).toBe(true); | ||||
|     } | ||||
|   }, 100000); | ||||
| 
 | ||||
|   if (process.platform === 'win32') { | ||||
|   if (IS_WINDOWS) { | ||||
|     it('Falls back to backup location if first one doesnt contain correct version', async () => { | ||||
|       await installer.getNode('5.10.1'); | ||||
|       const nodeDir = path.join(toolDir, 'node', '5.10.1', os.arch()); | ||||
| @ -58,7 +90,11 @@ describe('installer tests', () => { | ||||
|     const nodeDir = path.join(toolDir, 'node', '8.8.1', os.arch()); | ||||
| 
 | ||||
|     expect(fs.existsSync(`${nodeDir}.complete`)).toBe(true); | ||||
|     expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); | ||||
|     if (IS_WINDOWS) { | ||||
|       expect(fs.existsSync(path.join(nodeDir, 'node.exe'))).toBe(true); | ||||
|     } else { | ||||
|       expect(fs.existsSync(path.join(nodeDir, 'bin', 'node'))).toBe(true); | ||||
|     } | ||||
|   }, 100000); | ||||
| 
 | ||||
|   it('Uses version of node installed in cache', async () => { | ||||
| @ -71,7 +107,7 @@ describe('installer tests', () => { | ||||
|   }); | ||||
| 
 | ||||
|   it('Doesnt use version of node that was only partially installed in cache', async () => { | ||||
|     const nodeDir: string = path.join(toolDir, 'node', '250.0.0', os.arch()); | ||||
|     const nodeDir: string = path.join(toolDir, 'node', '251.0.0', os.arch()); | ||||
|     await io.mkdirP(nodeDir); | ||||
|     let thrown = false; | ||||
|     try { | ||||
| @ -85,12 +121,12 @@ describe('installer tests', () => { | ||||
|   }); | ||||
| 
 | ||||
|   it('Resolves semantic versions of node installed in cache', async () => { | ||||
|     const nodeDir: string = path.join(toolDir, 'node', '250.0.0', os.arch()); | ||||
|     const nodeDir: string = path.join(toolDir, 'node', '252.0.0', os.arch()); | ||||
|     await io.mkdirP(nodeDir); | ||||
|     fs.writeFileSync(`${nodeDir}.complete`, 'hello'); | ||||
|     // These will throw if it doesn't find it in the cache (because no such version exists)
 | ||||
|     await installer.getNode('250.0.0'); | ||||
|     await installer.getNode('250'); | ||||
|     await installer.getNode('250.0'); | ||||
|     await installer.getNode('252.0.0'); | ||||
|     await installer.getNode('252'); | ||||
|     await installer.getNode('252.0'); | ||||
|   }); | ||||
| }); | ||||
|  | ||||
| @ -1,17 +1,22 @@ | ||||
| # Contributors | ||||
| 
 | ||||
| 
 | ||||
| # Checkin | ||||
| ### Checkin | ||||
| 
 | ||||
| - Do checkin source (src) | ||||
| - Do checkin build output (lib) | ||||
| - Do checkin runtime node_modules | ||||
| - Do not checkin  | ||||
| - Do not checkin devDependency node_modules (husky can help see below) | ||||
| 
 | ||||
| # Adding a dev dependency | ||||
| ### devDependencies | ||||
| 
 | ||||
| Remember to update .gitignore.   | ||||
| In order to handle correctly checking in node_modules without devDependencies, we run [Husky](https://github.com/typicode/husky) before each commit. | ||||
| This step ensures that formatting and checkin rules are followed and that devDependencies are excluded. To make sure Husky runs correctly, please use the following workflow: | ||||
| 
 | ||||
| # Updating toolkit dependency | ||||
| ``` | ||||
| npm install                                 # installs all devDependencies including Husky | ||||
| git add abc.ext                             # Add the files you've changed. This should include files in src, lib, and node_modules (see above) | ||||
| git commit -m "Informative commit message"  # Commit. This will run Husky | ||||
| ``` | ||||
| 
 | ||||
| Until released publically, update tgz packages in toolkit | ||||
| During the commit step, Husky will take care of formatting all files with [Prettier](https://github.com/prettier/prettier) as well as pruning out devDependencies using `npm prune --production`. | ||||
| It will also make sure these changes are appropriately included in your commit (no further work is needed) | ||||
							
								
								
									
										202
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										202
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -507,6 +507,12 @@ | ||||
|       "integrity": "sha512-j8YL2C0fXq7IONwl/Ud5Kt0PeXw22zGERt+HSSnwbKOJVsAGkEz3sFCYwaF9IOuoG1HOtE0vKCj6sXF7Q0+Vaw==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "@types/normalize-package-data": { | ||||
|       "version": "2.4.0", | ||||
|       "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", | ||||
|       "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "@types/semver": { | ||||
|       "version": "6.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/@types/semver/-/semver-6.0.0.tgz", | ||||
| @ -604,6 +610,15 @@ | ||||
|         "normalize-path": "^2.1.1" | ||||
|       } | ||||
|     }, | ||||
|     "argparse": { | ||||
|       "version": "1.0.10", | ||||
|       "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", | ||||
|       "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "sprintf-js": "~1.0.2" | ||||
|       } | ||||
|     }, | ||||
|     "arr-diff": { | ||||
|       "version": "4.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", | ||||
| @ -909,6 +924,32 @@ | ||||
|         "unset-value": "^1.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "caller-callsite": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", | ||||
|       "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "callsites": "^2.0.0" | ||||
|       }, | ||||
|       "dependencies": { | ||||
|         "callsites": { | ||||
|           "version": "2.0.0", | ||||
|           "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", | ||||
|           "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", | ||||
|           "dev": true | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "caller-path": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", | ||||
|       "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "caller-callsite": "^2.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "callsites": { | ||||
|       "version": "3.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", | ||||
| @ -1090,6 +1131,18 @@ | ||||
|       "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "cosmiconfig": { | ||||
|       "version": "5.2.1", | ||||
|       "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", | ||||
|       "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "import-fresh": "^2.0.0", | ||||
|         "is-directory": "^0.3.1", | ||||
|         "js-yaml": "^3.13.1", | ||||
|         "parse-json": "^4.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "cross-spawn": { | ||||
|       "version": "6.0.5", | ||||
|       "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", | ||||
| @ -2184,6 +2237,12 @@ | ||||
|       "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "get-stdin": { | ||||
|       "version": "7.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz", | ||||
|       "integrity": "sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "get-stream": { | ||||
|       "version": "4.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", | ||||
| @ -2347,6 +2406,82 @@ | ||||
|         "sshpk": "^1.7.0" | ||||
|       } | ||||
|     }, | ||||
|     "husky": { | ||||
|       "version": "2.4.0", | ||||
|       "resolved": "https://registry.npmjs.org/husky/-/husky-2.4.0.tgz", | ||||
|       "integrity": "sha512-3k1wuZU20gFkphNWMjh2ISCFaqfbaLY7R9FST2Mj9HeRhUK9ydj9qQR8qfXlog3EctVGsyeilcZkIT7uBZDDVA==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "cosmiconfig": "^5.2.0", | ||||
|         "execa": "^1.0.0", | ||||
|         "find-up": "^3.0.0", | ||||
|         "get-stdin": "^7.0.0", | ||||
|         "is-ci": "^2.0.0", | ||||
|         "pkg-dir": "^4.1.0", | ||||
|         "please-upgrade-node": "^3.1.1", | ||||
|         "read-pkg": "^5.1.1", | ||||
|         "run-node": "^1.0.0", | ||||
|         "slash": "^3.0.0" | ||||
|       }, | ||||
|       "dependencies": { | ||||
|         "locate-path": { | ||||
|           "version": "5.0.0", | ||||
|           "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", | ||||
|           "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", | ||||
|           "dev": true, | ||||
|           "requires": { | ||||
|             "p-locate": "^4.1.0" | ||||
|           } | ||||
|         }, | ||||
|         "p-locate": { | ||||
|           "version": "4.1.0", | ||||
|           "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", | ||||
|           "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", | ||||
|           "dev": true, | ||||
|           "requires": { | ||||
|             "p-limit": "^2.2.0" | ||||
|           } | ||||
|         }, | ||||
|         "pkg-dir": { | ||||
|           "version": "4.2.0", | ||||
|           "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", | ||||
|           "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", | ||||
|           "dev": true, | ||||
|           "requires": { | ||||
|             "find-up": "^4.0.0" | ||||
|           }, | ||||
|           "dependencies": { | ||||
|             "find-up": { | ||||
|               "version": "4.0.0", | ||||
|               "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.0.0.tgz", | ||||
|               "integrity": "sha512-zoH7ZWPkRdgwYCDVoQTzqjG8JSPANhtvLhh4KVUHyKnaUJJrNeFmWIkTcNuJmR3GLMEmGYEf2S2bjgx26JTF+Q==", | ||||
|               "dev": true, | ||||
|               "requires": { | ||||
|                 "locate-path": "^5.0.0" | ||||
|               } | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "read-pkg": { | ||||
|           "version": "5.1.1", | ||||
|           "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.1.1.tgz", | ||||
|           "integrity": "sha512-dFcTLQi6BZ+aFUaICg7er+/usEoqFdQxiEBsEMNGoipenihtxxtdrQuBXvyANCEI8VuUIVYFgeHGx9sLLvim4w==", | ||||
|           "dev": true, | ||||
|           "requires": { | ||||
|             "@types/normalize-package-data": "^2.4.0", | ||||
|             "normalize-package-data": "^2.5.0", | ||||
|             "parse-json": "^4.0.0", | ||||
|             "type-fest": "^0.4.1" | ||||
|           } | ||||
|         }, | ||||
|         "slash": { | ||||
|           "version": "3.0.0", | ||||
|           "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", | ||||
|           "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", | ||||
|           "dev": true | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "iconv-lite": { | ||||
|       "version": "0.4.24", | ||||
|       "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", | ||||
| @ -2356,6 +2491,16 @@ | ||||
|         "safer-buffer": ">= 2.1.2 < 3" | ||||
|       } | ||||
|     }, | ||||
|     "import-fresh": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", | ||||
|       "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "caller-path": "^2.0.0", | ||||
|         "resolve-from": "^3.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "import-local": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", | ||||
| @ -2495,6 +2640,12 @@ | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "is-directory": { | ||||
|       "version": "0.3.1", | ||||
|       "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", | ||||
|       "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "is-extendable": { | ||||
|       "version": "0.1.1", | ||||
|       "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", | ||||
| @ -3144,6 +3295,24 @@ | ||||
|       "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "js-yaml": { | ||||
|       "version": "3.13.1", | ||||
|       "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", | ||||
|       "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "argparse": "^1.0.7", | ||||
|         "esprima": "^4.0.0" | ||||
|       }, | ||||
|       "dependencies": { | ||||
|         "esprima": { | ||||
|           "version": "4.0.1", | ||||
|           "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", | ||||
|           "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", | ||||
|           "dev": true | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "jsbn": { | ||||
|       "version": "0.1.1", | ||||
|       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", | ||||
| @ -3905,6 +4074,15 @@ | ||||
|         "find-up": "^3.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "please-upgrade-node": { | ||||
|       "version": "3.1.1", | ||||
|       "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz", | ||||
|       "integrity": "sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "semver-compare": "^1.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "pn": { | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", | ||||
| @ -4193,6 +4371,12 @@ | ||||
|       "integrity": "sha512-6FomvYPfs+Jy9TfXmBpBuMWNH94SgCsZmJKcanySzgNNP6LjWxBvyLTa9KaMfDDM5oxRfrKDB0r/qeRsLwnBfA==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "run-node": { | ||||
|       "version": "1.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz", | ||||
|       "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "safe-buffer": { | ||||
|       "version": "5.1.2", | ||||
|       "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", | ||||
| @ -4242,6 +4426,12 @@ | ||||
|       "resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz", | ||||
|       "integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==" | ||||
|     }, | ||||
|     "semver-compare": { | ||||
|       "version": "1.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", | ||||
|       "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "set-blocking": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", | ||||
| @ -4499,6 +4689,12 @@ | ||||
|         "extend-shallow": "^3.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "sprintf-js": { | ||||
|       "version": "1.0.3", | ||||
|       "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", | ||||
|       "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "sshpk": { | ||||
|       "version": "1.16.1", | ||||
|       "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", | ||||
| @ -4814,6 +5010,12 @@ | ||||
|         "prelude-ls": "~1.1.2" | ||||
|       } | ||||
|     }, | ||||
|     "type-fest": { | ||||
|       "version": "0.4.1", | ||||
|       "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.4.1.tgz", | ||||
|       "integrity": "sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "typed-rest-client": { | ||||
|       "version": "1.4.0", | ||||
|       "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.4.0.tgz", | ||||
|  | ||||
| @ -7,6 +7,7 @@ | ||||
|   "scripts": { | ||||
|     "build": "tsc", | ||||
|     "format": "prettier --write **/*.ts", | ||||
|     "format-check": "prettier --check **/*.ts", | ||||
|     "test": "jest" | ||||
|   }, | ||||
|   "repository": { | ||||
| @ -32,10 +33,16 @@ | ||||
|     "@types/jest": "^24.0.13", | ||||
|     "@types/node": "^12.0.4", | ||||
|     "@types/semver": "^6.0.0", | ||||
|     "husky": "^2.3.0", | ||||
|     "jest": "^24.8.0", | ||||
|     "jest-circus": "^24.7.1", | ||||
|     "prettier": "^1.17.1", | ||||
|     "ts-jest": "^24.0.2", | ||||
|     "typescript": "^3.5.1" | ||||
|   }, | ||||
|   "husky": { | ||||
|     "hooks": { | ||||
|       "pre-commit": "npm run build && npm run format && npm prune --production && git add node_modules/*" | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user