First development of the deploy action (#6)
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Deploy js code to an instance of screeps. Some debugging tools are implemented. Reviewed-on: #6 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
21
node_modules/which-pm-runs/LICENSE
generated
vendored
Normal file
21
node_modules/which-pm-runs/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017-2022 Zoltan Kochan <z@kochan.io>
|
||||
|
||||
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.
|
31
node_modules/which-pm-runs/README.md
generated
vendored
Normal file
31
node_modules/which-pm-runs/README.md
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# which-pm-runs
|
||||
|
||||
> Detects what package manager executes the process
|
||||
|
||||
[](https://www.npmjs.com/package/which-pm-runs)
|
||||
|
||||
Supports npm, pnpm, Yarn, cnpm. And also any other package manager that sets the `npm_config_user_agent` env variable.
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
pnpm add which-pm-runs
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
'use strict'
|
||||
const whichPMRuns = require('which-pm-runs')
|
||||
|
||||
whichPMRuns()
|
||||
//> {name: "pnpm", version: "0.64.2"}
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
* [which-pm](https://github.com/zkochan/packages/tree/main/which-pm) - Detects what package manager was used for installation
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE) © [Zoltan Kochan](http://kochan.io)
|
18
node_modules/which-pm-runs/index.js
generated
vendored
Normal file
18
node_modules/which-pm-runs/index.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = function () {
|
||||
if (!process.env.npm_config_user_agent) {
|
||||
return undefined
|
||||
}
|
||||
return pmFromUserAgent(process.env.npm_config_user_agent)
|
||||
}
|
||||
|
||||
function pmFromUserAgent (userAgent) {
|
||||
const pmSpec = userAgent.split(' ')[0]
|
||||
const separatorPos = pmSpec.lastIndexOf('/')
|
||||
const name = pmSpec.substring(0, separatorPos)
|
||||
return {
|
||||
name: name === 'npminstall' ? 'cnpm' : name,
|
||||
version: pmSpec.substring(separatorPos + 1)
|
||||
}
|
||||
}
|
42
node_modules/which-pm-runs/package.json
generated
vendored
Normal file
42
node_modules/which-pm-runs/package.json
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "which-pm-runs",
|
||||
"version": "1.1.0",
|
||||
"description": "Detects what package manager executes the process",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"repository": "https://github.com/zkochan/packages/tree/main/which-pm-runs",
|
||||
"bugs": {
|
||||
"url": "https://github.com/zkochan/packages/labels/package%3A%20which-pm-runs"
|
||||
},
|
||||
"keywords": [
|
||||
"npm",
|
||||
"pnpm",
|
||||
"yarn",
|
||||
"cnpm"
|
||||
],
|
||||
"author": "Zoltan Kochan",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/zkochan/packages/tree/main/which-pm-runs#readme",
|
||||
"dependenciesMeta": {
|
||||
"which-pm-runs": {
|
||||
"injected": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"cnpm": "^7.1.1",
|
||||
"execa": "^5.1.1",
|
||||
"npm": "^8.2.0",
|
||||
"pnpm": "^6.23.6",
|
||||
"tape": "^5.3.2",
|
||||
"which-pm-runs": "file:",
|
||||
"yarn": "^1.22.17"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tape test"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user