Skip to content

Commit

Permalink
chore: bump packages and audit fixes (#85)
Browse files Browse the repository at this point in the history
* chore: ignore all .env files

* chore: use envrc files

* chore: move require to separate statement

* chore: add vscode configurations for debugging

* chore: run an npm update

* chore: update packages

* 2.1.1

* docs: update changelog
  • Loading branch information
mrsauravsahu authored Aug 20, 2023
1 parent 4fec3a8 commit d8ceac8
Show file tree
Hide file tree
Showing 10 changed files with 1,620 additions and 9,195 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.env

coverage

.env*
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

npm run lint:staged

envFile=.env
envFile=.envrc

src/bin/run $envFile template$envFile
src/bin/run -f md $envFile template$envFile.md
Expand Down
23 changes: 18 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,30 @@
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"stopOnEntry": true,
"name": "Launch Program MD",
"program": "${workspaceFolder}/src/bin/run",
"args": [
"-f=md", ".envrc", "template.envrc.md"
],
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"stopOnEntry": true,
"name": "Launch Program",
"program": "${workspaceFolder}/src/bin/run",
"args": [
"__tests__/file-samples/lf-and-crlf.input.env",
"playground/test.output.env"
]
".envrc", "template.envrc"
],
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
]
}
10,765 changes: 1,590 additions & 9,175 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gen-env-template",
"version": "2.1.0",
"version": "2.1.1",
"description": "Generate .env template file from .env",
"main": "src/bin/run",
"scripts": {
Expand Down Expand Up @@ -43,7 +43,6 @@
"@babel/eslint-parser": "^7.16.5",
"@oclif/config": "^1.18.2",
"@oclif/dev-cli": "^1.26.10",
"@oclif/errors": "^1.3.5",
"@oclif/plugin-help": "^3.3.1",
"@types/jest": "^26.0.24",
"all-contributors-cli": "^6.20.0",
Expand All @@ -56,6 +55,7 @@
"shelljs": "^0.8.5"
},
"dependencies": {
"@oclif/command": "^1.8.16"
"@oclif/command": "^1.8.36",
"@oclif/errors": "^1.3.6"
}
}
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ This project follows the [all-contributors](https://github.com/all-contributors/

## What's new? 🎉 🥳

- **v2.1.1** - Audit fixes and dependency updates
- **v2.1.0** - Improv: Ability to read multiline variables
- **v2.0.7** - Feat: Ability to remove region comments `#region safe`, `#endregion safe`
- **v2.0.6** - CI: Improvement (Use matrix builds to test on Windows, Linux and Mac)
Expand Down
3 changes: 2 additions & 1 deletion src/bin/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env node

const errorHandler = require('@oclif/errors/handle')
const Command = require('../command')

Command
.run()
.catch(require('@oclif/errors/handle'))
.catch(errorHandler)
5 changes: 0 additions & 5 deletions template.env.md

This file was deleted.

4 changes: 0 additions & 4 deletions template.env → template.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@

NODE_ENV=development

SAMPLE_ENV=sample1n

# endregion safe

NEW_API_KEY=
3 changes: 3 additions & 0 deletions template.envrc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
|Key|Sample Value|
|---|---|
|NODE_ENV|development|

0 comments on commit d8ceac8

Please sign in to comment.