1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

* first action! (#1)

This commit is contained in:
shimataro 2019-09-18 20:39:54 +09:00 committed by GitHub
parent 8deacc95b1
commit ace1e6a69a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3750 changed files with 1155519 additions and 0 deletions

16
node_modules/has-yarn/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,16 @@
declare const hasYarn: {
/**
* Check if a project is using [Yarn](https://yarnpkg.com).
*
* @param cwd - Current working directory. Default: `process.cwd()`.
* @returns Whether the project uses Yarn.
*/
(cwd?: string): boolean;
// TODO: Remove this for the next major release, refactor the whole definition to:
// declare function hasYarn(cwd?: string): boolean;
// export = hasYarn;
default: typeof hasYarn;
};
export = hasYarn;

9
node_modules/has-yarn/index.js generated vendored Normal file
View file

@ -0,0 +1,9 @@
'use strict';
const path = require('path');
const fs = require('fs');
const hasYarn = (cwd = process.cwd()) => fs.existsSync(path.resolve(cwd, 'yarn.lock'));
module.exports = hasYarn;
// TODO: Remove this for the next major release
module.exports.default = hasYarn;

9
node_modules/has-yarn/license generated vendored Normal file
View file

@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

71
node_modules/has-yarn/package.json generated vendored Normal file
View file

@ -0,0 +1,71 @@
{
"_from": "has-yarn@^2.1.0",
"_id": "has-yarn@2.1.0",
"_inBundle": false,
"_integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==",
"_location": "/has-yarn",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "has-yarn@^2.1.0",
"name": "has-yarn",
"escapedName": "has-yarn",
"rawSpec": "^2.1.0",
"saveSpec": null,
"fetchSpec": "^2.1.0"
},
"_requiredBy": [
"/update-notifier"
],
"_resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz",
"_shasum": "137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77",
"_spec": "has-yarn@^2.1.0",
"_where": "/home/shimataro/projects/actions/ssh-key-action/node_modules/update-notifier",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/has-yarn/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Check if a project is using Yarn",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.1",
"xo": "^0.24.0"
},
"engines": {
"node": ">=8"
},
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/sindresorhus/has-yarn#readme",
"keywords": [
"yarn",
"has",
"detect",
"is",
"project",
"app",
"module",
"package",
"manager",
"npm"
],
"license": "MIT",
"name": "has-yarn",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/has-yarn.git"
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "2.1.0"
}

60
node_modules/has-yarn/readme.md generated vendored Normal file
View file

@ -0,0 +1,60 @@
# has-yarn [![Build Status](https://travis-ci.org/sindresorhus/has-yarn.svg?branch=master)](https://travis-ci.org/sindresorhus/has-yarn)
> Check if a project is using [Yarn](https://yarnpkg.com)
Useful for tools that needs to know whether to use `yarn` or `npm` to install dependencies.
It checks if a `yarn.lock` file is present in the working directory.
## Install
```
$ npm install has-yarn
```
## Usage
```
.
├── foo
│   └── package.json
└── bar
├── package.json
└── yarn.lock
```
```js
const hasYarn = require('has-yarn');
hasYarn('foo');
//=> false
hasYarn('bar');
//=> true
```
## API
### hasYarn([cwd])
Returns a `boolean` of whether the project uses Yarn.
#### cwd
Type: `string`<br>
Default: `process.cwd()`
Current working directory.
## Related
- [has-yarn-cli](https://github.com/sindresorhus/has-yarn-cli) - CLI for this module
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)