Skip to content

Commit 4a43239

Browse files
authored
Merge pull request #63 from frouriojs/develop
chore(release): 0.1.3
2 parents 50a8da5 + 65214bc commit 4a43239

File tree

7 files changed

+83
-75
lines changed

7 files changed

+83
-75
lines changed

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.3](https://github.com/frouriojs/typeormer/compare/v0.1.2...v0.1.3) (2021-02-10)
6+
7+
8+
### Bug Fixes
9+
10+
* check file extensions ([d12843b](https://github.com/frouriojs/typeormer/commit/d12843b62a715c4098f8846b3f70894fbd333b87))
11+
512
### [0.1.2](https://github.com/frouriojs/typeormer/compare/v0.1.1...v0.1.2) (2021-01-25)
613

714

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typeormer",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "TypeORM helper",
55
"author": "Solufa <solufa2020@gmail.com>",
66
"license": "MIT",
@@ -86,9 +86,9 @@
8686
"devDependencies": {
8787
"@types/jest": "^26.0.20",
8888
"@types/minimist": "^1.2.1",
89-
"@typescript-eslint/eslint-plugin": "^4.14.0",
90-
"@typescript-eslint/parser": "^4.14.0",
91-
"eslint": "^7.18.0",
89+
"@typescript-eslint/eslint-plugin": "^4.15.0",
90+
"@typescript-eslint/parser": "^4.15.0",
91+
"eslint": "^7.19.0",
9292
"eslint-config-prettier": "^7.2.0",
9393
"eslint-config-standard": "^16.0.2",
9494
"eslint-plugin-import": "^2.22.1",
@@ -100,7 +100,7 @@
100100
"jest": "^26.6.3",
101101
"prettier": "^2.2.1",
102102
"standard-version": "^9.1.0",
103-
"ts-jest": "^26.4.4",
104-
"typescript": "^4.1.3"
103+
"ts-jest": "^26.5.1",
104+
"typescript": "^4.1.4"
105105
}
106106
}

servers/basic/entity/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Entities
2+
3+
## Task
4+
5+
blah blah

servers/basic/subscriber/.gitkeep

Whitespace-only changes.

src/createText.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ export class ${getFileName(e)} {
3838
(e, i) =>
3939
`\nimport { ${getFileName(e)} as Entity${i} } from '${e
4040
.replace(inputDir, '.')
41-
.replace('.ts', '')}'`
41+
.replace(/\.(?:ts|js)$/, '')}'`
4242
)
4343
.join('')}${migrations
4444
.map((m, i) => {
4545
const names = getFileName(m).split('-')
4646
return `\nimport { ${names[1]}${names[0]} as Migration${i} } from '${m
4747
.replace(inputDir, '.')
48-
.replace('.ts', '')}'`
48+
.replace(/\.(?:ts|js)$/, '')}'`
4949
})
5050
.join('')}${subscribers
5151
.map(
5252
(s, i) =>
5353
`\nimport { ${getFileName(s)} as Subscriber${i} } from '${s
5454
.replace(inputDir, '.')
55-
.replace('.ts', '')}'`
55+
.replace(/\.(?:ts|js)$/, '')}'`
5656
)
5757
.join('')}`
5858

src/listFiles.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export const listFiles = (targetDir: string): string[] =>
55
fs.readdirSync(targetDir, { withFileTypes: true }).reduce<string[]>((prev, dirent) => {
66
const target = path.posix.join(targetDir, dirent.name)
77
return dirent.isFile()
8-
? [...prev, targetDir.startsWith('.') ? `./${target}` : target]
8+
? target.match(/\.(?:ts|js)$/)
9+
? [...prev, targetDir.startsWith('.') ? `./${target}` : target]
10+
: prev
911
: [...prev, ...listFiles(target)]
1012
}, [])

yarn.lock

Lines changed: 59 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -690,29 +690,29 @@
690690
dependencies:
691691
"@types/yargs-parser" "*"
692692

693-
"@typescript-eslint/eslint-plugin@^4.14.0":
694-
version "4.14.0"
695-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.14.0.tgz#92db8e7c357ed7d69632d6843ca70b71be3a721d"
696-
integrity sha512-IJ5e2W7uFNfg4qh9eHkHRUCbgZ8VKtGwD07kannJvM5t/GU8P8+24NX8gi3Hf5jST5oWPY8kyV1s/WtfiZ4+Ww==
693+
"@typescript-eslint/eslint-plugin@^4.15.0":
694+
version "4.15.0"
695+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.15.0.tgz#13a5a07cf30d0d5781e43480aa2a8d38d308b084"
696+
integrity sha512-DJgdGZW+8CFUTz5C/dnn4ONcUm2h2T0itWD85Ob5/V27Ndie8hUoX5HKyGssvR8sUMkAIlUc/AMK67Lqa3kBIQ==
697697
dependencies:
698-
"@typescript-eslint/experimental-utils" "4.14.0"
699-
"@typescript-eslint/scope-manager" "4.14.0"
698+
"@typescript-eslint/experimental-utils" "4.15.0"
699+
"@typescript-eslint/scope-manager" "4.15.0"
700700
debug "^4.1.1"
701701
functional-red-black-tree "^1.0.1"
702702
lodash "^4.17.15"
703703
regexpp "^3.0.0"
704704
semver "^7.3.2"
705705
tsutils "^3.17.1"
706706

707-
"@typescript-eslint/experimental-utils@4.14.0":
708-
version "4.14.0"
709-
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.14.0.tgz#5aa7b006736634f588a69ee343ca959cd09988df"
710-
integrity sha512-6i6eAoiPlXMKRbXzvoQD5Yn9L7k9ezzGRvzC/x1V3650rUk3c3AOjQyGYyF9BDxQQDK2ElmKOZRD0CbtdkMzQQ==
707+
"@typescript-eslint/experimental-utils@4.15.0":
708+
version "4.15.0"
709+
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.15.0.tgz#b87c36410a9b23f637689427be85007a2ec1a9c6"
710+
integrity sha512-V4vaDWvxA2zgesg4KPgEGiomWEBpJXvY4ZX34Y3qxK8LUm5I87L+qGIOTd9tHZOARXNRt9pLbblSKiYBlGMawg==
711711
dependencies:
712712
"@types/json-schema" "^7.0.3"
713-
"@typescript-eslint/scope-manager" "4.14.0"
714-
"@typescript-eslint/types" "4.14.0"
715-
"@typescript-eslint/typescript-estree" "4.14.0"
713+
"@typescript-eslint/scope-manager" "4.15.0"
714+
"@typescript-eslint/types" "4.15.0"
715+
"@typescript-eslint/typescript-estree" "4.15.0"
716716
eslint-scope "^5.0.0"
717717
eslint-utils "^2.0.0"
718718

@@ -728,14 +728,14 @@
728728
eslint-scope "^5.0.0"
729729
eslint-utils "^2.0.0"
730730

731-
"@typescript-eslint/parser@^4.14.0":
732-
version "4.14.0"
733-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.14.0.tgz#62d4cd2079d5c06683e9bfb200c758f292c4dee7"
734-
integrity sha512-sUDeuCjBU+ZF3Lzw0hphTyScmDDJ5QVkyE21pRoBo8iDl7WBtVFS+WDN3blY1CH3SBt7EmYCw6wfmJjF0l/uYg==
731+
"@typescript-eslint/parser@^4.15.0":
732+
version "4.15.0"
733+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.15.0.tgz#8df94365b4b7161f9e8514fe28aef19954810b6b"
734+
integrity sha512-L6Dtbq8Bc7g2aZwnIBETpmUa9XDKCMzKVwAArnGp5Mn7PRNFjf3mUzq8UeBjL3K8t311hvevnyqXAMSmxO8Gpg==
735735
dependencies:
736-
"@typescript-eslint/scope-manager" "4.14.0"
737-
"@typescript-eslint/types" "4.14.0"
738-
"@typescript-eslint/typescript-estree" "4.14.0"
736+
"@typescript-eslint/scope-manager" "4.15.0"
737+
"@typescript-eslint/types" "4.15.0"
738+
"@typescript-eslint/typescript-estree" "4.15.0"
739739
debug "^4.1.1"
740740

741741
"@typescript-eslint/scope-manager@4.0.1":
@@ -746,23 +746,23 @@
746746
"@typescript-eslint/types" "4.0.1"
747747
"@typescript-eslint/visitor-keys" "4.0.1"
748748

749-
"@typescript-eslint/scope-manager@4.14.0":
750-
version "4.14.0"
751-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.14.0.tgz#55a4743095d684e1f7b7180c4bac2a0a3727f517"
752-
integrity sha512-/J+LlRMdbPh4RdL4hfP1eCwHN5bAhFAGOTsvE6SxsrM/47XQiPSgF5MDgLyp/i9kbZV9Lx80DW0OpPkzL+uf8Q==
749+
"@typescript-eslint/scope-manager@4.15.0":
750+
version "4.15.0"
751+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.15.0.tgz#c42703558ea6daaaba51a9c3a86f2902dbab9432"
752+
integrity sha512-CSNBZnCC2jEA/a+pR9Ljh8Y+5TY5qgbPz7ICEk9WCpSEgT6Pi7H2RIjxfrrbUXvotd6ta+i27sssKEH8Azm75g==
753753
dependencies:
754-
"@typescript-eslint/types" "4.14.0"
755-
"@typescript-eslint/visitor-keys" "4.14.0"
754+
"@typescript-eslint/types" "4.15.0"
755+
"@typescript-eslint/visitor-keys" "4.15.0"
756756

757757
"@typescript-eslint/types@4.0.1":
758758
version "4.0.1"
759759
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.0.1.tgz#1cf72582f764931f085cb8230ff215980fe467b2"
760760
integrity sha512-S+gD3fgbkZYW2rnbjugNMqibm9HpEjqZBZkTiI3PwbbNGWmAcxolWIUwZ0SKeG4Dy2ktpKKaI/6+HGYVH8Qrlg==
761761

762-
"@typescript-eslint/types@4.14.0":
763-
version "4.14.0"
764-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.14.0.tgz#d8a8202d9b58831d6fd9cee2ba12f8a5a5dd44b6"
765-
integrity sha512-VsQE4VvpldHrTFuVPY1ZnHn/Txw6cZGjL48e+iBxTi2ksa9DmebKjAeFmTVAYoSkTk7gjA7UqJ7pIsyifTsI4A==
762+
"@typescript-eslint/types@4.15.0":
763+
version "4.15.0"
764+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.15.0.tgz#3011ae1ac3299bb9a5ac56bdd297cccf679d3662"
765+
integrity sha512-su4RHkJhS+iFwyqyXHcS8EGPlUVoC+XREfy5daivjLur9JP8GhvTmDipuRpcujtGC4M+GYhUOJCPDE3rC5NJrg==
766766

767767
"@typescript-eslint/typescript-estree@4.0.1":
768768
version "4.0.1"
@@ -778,17 +778,16 @@
778778
semver "^7.3.2"
779779
tsutils "^3.17.1"
780780

781-
"@typescript-eslint/typescript-estree@4.14.0":
782-
version "4.14.0"
783-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.14.0.tgz#4bcd67486e9acafc3d0c982b23a9ab8ac8911ed7"
784-
integrity sha512-wRjZ5qLao+bvS2F7pX4qi2oLcOONIB+ru8RGBieDptq/SudYwshveORwCVU4/yMAd4GK7Fsf8Uq1tjV838erag==
781+
"@typescript-eslint/typescript-estree@4.15.0":
782+
version "4.15.0"
783+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.15.0.tgz#402c86a7d2111c1f7a2513022f22a38a395b7f93"
784+
integrity sha512-jG6xTmcNbi6xzZq0SdWh7wQ9cMb2pqXaUp6bUZOMsIlu5aOlxGxgE/t6L/gPybybQGvdguajXGkZKSndZJpksA==
785785
dependencies:
786-
"@typescript-eslint/types" "4.14.0"
787-
"@typescript-eslint/visitor-keys" "4.14.0"
786+
"@typescript-eslint/types" "4.15.0"
787+
"@typescript-eslint/visitor-keys" "4.15.0"
788788
debug "^4.1.1"
789789
globby "^11.0.1"
790790
is-glob "^4.0.1"
791-
lodash "^4.17.15"
792791
semver "^7.3.2"
793792
tsutils "^3.17.1"
794793

@@ -800,12 +799,12 @@
800799
"@typescript-eslint/types" "4.0.1"
801800
eslint-visitor-keys "^2.0.0"
802801

803-
"@typescript-eslint/visitor-keys@4.14.0":
804-
version "4.14.0"
805-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.14.0.tgz#b1090d9d2955b044b2ea2904a22496849acbdf54"
806-
integrity sha512-MeHHzUyRI50DuiPgV9+LxcM52FCJFYjJiWHtXlbyC27b80mfOwKeiKI+MHOTEpcpfmoPFm/vvQS88bYIx6PZTA==
802+
"@typescript-eslint/visitor-keys@4.15.0":
803+
version "4.15.0"
804+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.15.0.tgz#2a07768df30c8a5673f1bce406338a07fdec38ca"
805+
integrity sha512-RnDtJwOwFucWFAMjG3ghCG/ikImFJFEg20DI7mn4pHEx3vC48lIAoyjhffvfHmErRDboUPC7p9Z2il4CLb7qxA==
807806
dependencies:
808-
"@typescript-eslint/types" "4.14.0"
807+
"@typescript-eslint/types" "4.15.0"
809808
eslint-visitor-keys "^2.0.0"
810809

811810
JSONStream@^1.0.4:
@@ -2059,10 +2058,10 @@ eslint-visitor-keys@^2.0.0:
20592058
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8"
20602059
integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==
20612060

2062-
eslint@^7.18.0:
2063-
version "7.18.0"
2064-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.18.0.tgz#7fdcd2f3715a41fe6295a16234bd69aed2c75e67"
2065-
integrity sha512-fbgTiE8BfUJZuBeq2Yi7J3RB3WGUQ9PNuNbmgi6jt9Iv8qrkxfy19Ds3OpL1Pm7zg3BtTVhvcUZbIRQ0wmSjAQ==
2061+
eslint@^7.19.0:
2062+
version "7.19.0"
2063+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.19.0.tgz#6719621b196b5fad72e43387981314e5d0dc3f41"
2064+
integrity sha512-CGlMgJY56JZ9ZSYhJuhow61lMPPjUzWmChFya71Z/jilVos7mR/jPgaEfVGgMBY5DshbKdG8Ezb8FDCHcoMEMg==
20662065
dependencies:
20672066
"@babel/code-frame" "^7.0.0"
20682067
"@eslint/eslintrc" "^0.3.0"
@@ -3750,11 +3749,6 @@ lodash.ismatch@^4.4.0:
37503749
resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37"
37513750
integrity sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=
37523751

3753-
lodash.memoize@4.x:
3754-
version "4.1.2"
3755-
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
3756-
integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=
3757-
37583752
lodash.sortby@^4.7.0:
37593753
version "4.7.0"
37603754
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
@@ -3775,6 +3769,11 @@ lodash.templatesettings@^4.0.0:
37753769
dependencies:
37763770
lodash._reinterpolate "^3.0.0"
37773771

3772+
lodash@4.x, lodash@^4.17.20:
3773+
version "4.17.20"
3774+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
3775+
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
3776+
37783777
lodash@^4.17.13, lodash@^4.17.15:
37793778
version "4.17.15"
37803779
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
@@ -3785,11 +3784,6 @@ lodash@^4.17.19:
37853784
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
37863785
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
37873786

3788-
lodash@^4.17.20:
3789-
version "4.17.20"
3790-
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
3791-
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
3792-
37933787
loud-rejection@^1.0.0:
37943788
version "1.6.0"
37953789
resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f"
@@ -5506,18 +5500,18 @@ trim-off-newlines@^1.0.0:
55065500
resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3"
55075501
integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM=
55085502

5509-
ts-jest@^26.4.4:
5510-
version "26.4.4"
5511-
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.4.4.tgz#61f13fb21ab400853c532270e52cc0ed7e502c49"
5512-
integrity sha512-3lFWKbLxJm34QxyVNNCgXX1u4o/RV0myvA2y2Bxm46iGIjKlaY0own9gIckbjZJPn+WaJEnfPPJ20HHGpoq4yg==
5503+
ts-jest@^26.5.1:
5504+
version "26.5.1"
5505+
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.5.1.tgz#4d53ee4481552f57c1624f0bd3425c8b17996150"
5506+
integrity sha512-G7Rmo3OJMvlqE79amJX8VJKDiRcd7/r61wh9fnvvG8cAjhA9edklGw/dCxRSQmfZ/z8NDums5srSVgwZos1qfg==
55135507
dependencies:
55145508
"@types/jest" "26.x"
55155509
bs-logger "0.x"
55165510
buffer-from "1.x"
55175511
fast-json-stable-stringify "2.x"
55185512
jest-util "^26.1.0"
55195513
json5 "2.x"
5520-
lodash.memoize "4.x"
5514+
lodash "4.x"
55215515
make-error "1.x"
55225516
mkdirp "1.x"
55235517
semver "7.x"
@@ -5613,10 +5607,10 @@ typedarray@^0.0.6:
56135607
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
56145608
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
56155609

5616-
typescript@^4.1.3:
5617-
version "4.1.3"
5618-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
5619-
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==
5610+
typescript@^4.1.4:
5611+
version "4.1.4"
5612+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.4.tgz#f058636e2f4f83f94ddaae07b20fd5e14598432f"
5613+
integrity sha512-+Uru0t8qIRgjuCpiSPpfGuhHecMllk5Zsazj5LZvVsEStEjmIRRBZe+jHjGQvsgS7M1wONy2PQXd67EMyV6acg==
56205614

56215615
uglify-js@^3.1.4:
56225616
version "3.9.4"

0 commit comments

Comments
 (0)