Skip to content

Commit f363eae

Browse files
committed
update deps
1 parent a8ab666 commit f363eae

16 files changed

+2093
-1699
lines changed

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
custom: ['https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M754R7Y5FE6DN&source=url']

.github/ISSUE_TEMPLATE/bug_report.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
3+
name: Bug report
4+
about: Create a report to help us improve
5+
title: ''
6+
labels: ''
7+
assignees: ''
8+
---**Describe the bug**
9+
A clear and concise description of what the bug is.
10+
11+
**To Reproduce**
12+
Steps to reproduce the behavior:
13+
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Screenshots**
23+
If applicable, add screenshots to help explain your problem.
24+
25+
**OS (please complete the following information):**
26+
27+
- OS: [e.g. OSX, Linux...]
28+
- Node Version
29+
30+
**Additional context**
31+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
# Sequence of patterns matched against refs/tags
4+
tags:
5+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+
name: Git Release
8+
9+
jobs:
10+
build:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@master
16+
- name: Create Release
17+
id: create_release
18+
uses: actions/create-release@v1
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
21+
with:
22+
tag_name: ${{ github.ref }}
23+
release_name: Release ${{ github.ref }}
24+
draft: false
25+
prerelease: false

.github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [10.x, 11.x, 12.x, 13.x]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: npm install, build, and test
20+
run: |
21+
yarn install
22+
yarn run lint
23+
yarn run build
24+
yarn run test:cov
25+
- name: Codecov
26+
uses: codecov/codecov-action@v1.0.5
27+
with:
28+
token: ${{ secrets.CODECOV_TOKEN }}
29+
file: ./coverage/coverage-final.json
30+
fail_ci_if_error: true
31+
CI: true

.npmignore

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
src
2-
docs
3-
jest.config.js
4-
tsconfig.*
1+
docs/
2+
src/
3+
test/
4+
.prettierrc
5+
.pretiierignore
6+
.gitignore
7+
tsconfig.json
58
typedoc.js
9+
yarn.lock
610
renovate.json
7-
.prettierrc
11+
lib/test
12+
renovate.json
13+
.DS_Store
14+
.vscode
15+
*.tgz
16+
.eslintrc
17+
.github/
18+
dist/test/

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/*.d.ts
2+
**/*.js

.vscode/launch.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "attach",
7+
"name": "Attach",
8+
"port": 9229
9+
}
10+
]
11+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"typescript.tsdk": "./node_modules/typescript/lib",
3+
"eslint.validate": ["typescript", "javascript"],
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll.eslint": true
6+
}
7+
}

jest.config.js

-12
This file was deleted.

package.json

+43-17
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,63 @@
11
{
22
"name": "nestjs-node-config",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "The nestjs node-config package",
55
"author": "Alex Hermann <alex.hermann@pop-code.com>",
66
"repository": "https://github.com/Pop-Code/nestjs-node-config",
7-
"main": "build/index.js",
7+
"main": "dist/index.js",
8+
"types": "./dist/index.d.ts",
89
"scripts": {
9-
"build": "rm -Rf ./lib && tsc",
10+
"build": "rm -Rf ./dist && tsc",
1011
"doc": "rm -Rf ./docs && typedoc ./src && touch ./docs/.nojekyll",
1112
"test:ci": "jest --runInBand",
1213
"test": "jest",
1314
"test:watch": "jest --watch",
1415
"test:cov": "jest --coverage",
15-
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"
16+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest",
17+
"lint": "eslint ./src/**/*.ts",
18+
"format": "prettier \"**/*.ts\" --ignore-path ./.prettierignore --write && git status"
1619
},
1720
"dependencies": {
18-
"config": "3.1.0"
21+
"config": "3.3.1"
1922
},
2023
"peerDependencies": {
21-
"@nestjs/common": "^6.1.1"
24+
"@nestjs/common": "^6 || ^7"
2225
},
2326
"devDependencies": {
24-
"@nestjs/common": "6.2.4",
25-
"@nestjs/testing": "6.2.4",
26-
"@types/jest": "24.0.13",
27-
"codecov": "3.5.0",
28-
"jest": "24.8.0",
27+
"@nestjs/core": "7.0.9",
28+
"@nestjs/common": "7.0.9",
29+
"@nestjs/testing": "7.0.9",
30+
"@types/jest": "25.2.1",
31+
"prettier": "2.0.5",
32+
"codecov": "3.6.5",
33+
"jest": "25.5.4",
2934
"reflect-metadata": "0.1.13",
30-
"rxjs": "6.5.2",
31-
"ts-jest": "24.0.2",
32-
"ts-node": "8.1.0",
33-
"tsconfig-paths": "3.8.0",
34-
"typedoc": "0.14.2",
35-
"typescript": "3.4.5"
35+
"rxjs": "6.5.5",
36+
"ts-jest": "25.4.0",
37+
"ts-node": "8.10.1",
38+
"tsconfig-paths": "3.9.0",
39+
"typedoc": "0.17.6",
40+
"typescript": "3.8.3"
41+
},
42+
"jest": {
43+
"moduleFileExtensions": [
44+
"js",
45+
"json",
46+
"ts"
47+
],
48+
"rootDir": "src",
49+
"testRegex": ".spec.ts$",
50+
"transform": {
51+
"^.+\\.(t|j)s$": "ts-jest"
52+
},
53+
"collectCoverageFrom": [
54+
"**/*.{js,jsx,ts}",
55+
"!index.ts",
56+
"!**/test/**"
57+
],
58+
"coverageDirectory": "../coverage"
59+
},
60+
"engines": {
61+
"node": ">=0.10"
3662
}
3763
}

tsconfig.build.json

-5
This file was deleted.

tsconfig.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"resolveJsonModule": true,
5-
"esModuleInterop": true,
4+
"allowSyntheticDefaultImports": true,
65
"declaration": true,
6+
"declarationMap": true,
77
"noImplicitAny": false,
8+
"noUnusedLocals": false,
89
"removeComments": true,
910
"noLib": false,
10-
"allowSyntheticDefaultImports": true,
1111
"emitDecoratorMetadata": true,
1212
"experimentalDecorators": true,
1313
"target": "es6",
1414
"sourceMap": true,
15-
"outDir": "./build",
16-
"baseUrl": "."
15+
"allowJs": true,
16+
"outDir": "dist",
17+
"lib": ["es7"]
1718
},
18-
"exclude": ["node_modules"]
19+
"include": ["src/**/*"]
1920
}

tsconfig.spec.json

-7
This file was deleted.

typedoc.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ module.exports = {
1414
suppressExcessPropertyErrors: true,
1515
suppressImplicitAnyIndexErrors: true,
1616
module: 'commonjs',
17-
hideGenerator: true,
18-
mode: 'modules'
17+
hideGenerator: true
1918
};

0 commit comments

Comments
 (0)