Skip to content

Commit 2017656

Browse files
authored
Merge pull request #36 from frouriojs/develop
chore(release): 0.1.1
2 parents c2320dc + 344c34d commit 2017656

File tree

6 files changed

+819
-579
lines changed

6 files changed

+819
-579
lines changed

.github/workflows/nodejs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
node-version: [12, 14]
12-
os: [windows-latest, ubuntu-latest]
11+
node-version: [10, 12, 14]
12+
os: [ubuntu-latest]
13+
include:
14+
- os: windows-latest
15+
node-version: 14
1316
steps:
1417
- uses: actions/checkout@v2
1518
- name: setup Node.js ${{ matrix.node-version }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [0.1.1](https://github.com/frouriojs/typeormer/compare/v0.1.0...v0.1.1) (2020-11-07)
6+
7+
8+
### Bug Fixes
9+
10+
* remove flatMap for node v10 ([8233fec](https://github.com/frouriojs/typeormer/commit/8233fec7afb91338507550fab8b8ea3f00ad9845))
11+
512
## 0.1.0 (2020-08-13)
613

714

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
- Using [npm](https://www.npmjs.com/):
1414

1515
```sh
16-
$ npm install reflect-metadata typeorm typeormer
16+
$ npm install typeorm typeormer
1717
```
1818

1919
- Using [Yarn](https://yarnpkg.com/):
2020

2121
```sh
22-
$ yarn add reflect-metadata typeorm typeormer
22+
$ yarn add typeorm typeormer
2323
```
2424

2525
## Usage
@@ -104,7 +104,7 @@ $ npm run typeormer # created $orm.ts
104104
`index.ts`
105105
```ts
106106
import 'reflect-metadata'
107-
import { createConnection, Connection, ConnectionOptions } from 'typeorm'
107+
import { createConnection } from 'typeorm'
108108
import ormconfig from './ormconfig'
109109
import options from './$orm'
110110

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typeormer",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "TypeORM helper",
55
"author": "Solufa <solufa2020@gmail.com>",
66
"license": "MIT",
@@ -84,23 +84,23 @@
8484
]
8585
},
8686
"devDependencies": {
87-
"@types/jest": "^26.0.9",
87+
"@types/jest": "^26.0.15",
8888
"@types/minimist": "^1.2.0",
89-
"@typescript-eslint/eslint-plugin": "^3.9.0",
90-
"@typescript-eslint/parser": "^3.9.0",
91-
"eslint": "^7.6.0",
92-
"eslint-config-prettier": "^6.11.0",
93-
"eslint-config-standard": "^14.1.1",
94-
"eslint-plugin-import": "^2.22.0",
95-
"eslint-plugin-jest": "^23.20.0",
89+
"@typescript-eslint/eslint-plugin": "^4.6.1",
90+
"@typescript-eslint/parser": "^4.6.1",
91+
"eslint": "^7.13.0",
92+
"eslint-config-prettier": "^6.15.0",
93+
"eslint-config-standard": "^16.0.1",
94+
"eslint-plugin-import": "^2.22.1",
95+
"eslint-plugin-jest": "^24.1.0",
9696
"eslint-plugin-node": "^11.1.0",
9797
"eslint-plugin-prettier": "^3.1.4",
9898
"eslint-plugin-promise": "^4.2.1",
99-
"eslint-plugin-standard": "^4.0.1",
100-
"jest": "^26.3.0",
101-
"prettier": "2.0.5",
102-
"standard-version": "^8.0.2",
103-
"ts-jest": "^26.2.0",
104-
"typescript": "^3.9.7"
99+
"eslint-plugin-standard": "^4.0.2",
100+
"jest": "^26.6.3",
101+
"prettier": "^2.1.2",
102+
"standard-version": "^9.0.0",
103+
"ts-jest": "^26.4.3",
104+
"typescript": "^4.0.5"
105105
}
106106
}

src/listFiles.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import fs from 'fs'
22
import path from 'path'
33

44
export const listFiles = (targetDir: string): string[] =>
5-
fs.readdirSync(targetDir, { withFileTypes: true }).flatMap(dirent => {
5+
fs.readdirSync(targetDir, { withFileTypes: true }).reduce<string[]>((prev, dirent) => {
66
const target = path.posix.join(targetDir, dirent.name)
77
return dirent.isFile()
8-
? [targetDir.startsWith('.') ? `./${target}` : target]
9-
: listFiles(target)
10-
})
8+
? [...prev, targetDir.startsWith('.') ? `./${target}` : target]
9+
: [...prev, ...listFiles(target)]
10+
}, [])

0 commit comments

Comments
 (0)