mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 08:32:34 +00:00
Remove wrapper package.json (#302)
Reference: https://github.com/hashicorp/setup-terraform/issues/290 The `wrapper` directory contains the JavaScript wrapper for the Terraform binary. It currently contains a `package.json` and lock file, however this code is not packaged and released separately. Having the separate package makes it unnecessarily difficult to ensure the subdirectory is built correctly and dependencies are up to date. This change removes the `wrapper` package files and consolidates the test, lint, and build logic into the main `package.json`.
This commit is contained in:
parent
1d777b53ee
commit
d3026307a0
10 changed files with 90 additions and 12551 deletions
18
package.json
18
package.json
|
|
@ -10,10 +10,9 @@
|
|||
"url": "https://github.com/hashicorp/setup-terraform.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "cd wrapper && npm test && cd .. && semistandard --env jest && jest --coverage",
|
||||
"lint": "cd wrapper && npm run lint && cd .. && semistandard --env jest --fix",
|
||||
"build": "cd wrapper && npm run build && cd .. && ncc build index.js --out dist",
|
||||
"postinstall": "cd wrapper && npm install",
|
||||
"test": "semistandard --env jest && jest --coverage",
|
||||
"lint": "semistandard --env jest --fix",
|
||||
"build": "ncc build wrapper/terraform.js --out wrapper/dist && ncc build index.js --out dist",
|
||||
"prepare": "husky install",
|
||||
"format-check": "echo \"unimplemented for actions/reusable-workflows basic-validation\""
|
||||
},
|
||||
|
|
@ -21,6 +20,7 @@
|
|||
"author": "",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^5.1.1",
|
||||
"@actions/io": "^1.1.2",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
|
|
@ -33,17 +33,9 @@
|
|||
"nock": "^13.3.0",
|
||||
"semistandard": "^16.0.1"
|
||||
},
|
||||
"jest": {
|
||||
"testPathIgnorePatterns": [
|
||||
"<rootDir>/dist/",
|
||||
"<rootDir>/node_modules/",
|
||||
"<rootDir>/wrapper/"
|
||||
]
|
||||
},
|
||||
"semistandard": {
|
||||
"ignore": [
|
||||
"dist/**",
|
||||
"wrapper/**"
|
||||
"**/dist/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue