Skip to content

Commit

Permalink
fix: fix peer dependency typeorm
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch committed Apr 12, 2020
1 parent 6f5f8e4 commit 02162ec
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 51 deletions.
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/sample
/src
.editorconfig
.eslintrc.js
.prettierrc
.releaserc
.sgcrc
.travis.yml
logo.png
ormconfig.js
tsconfig.build.json
tsconfig.json
29 changes: 10 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "typeorm-seeding",
"version": "1.4.2",
"description": "TypeORM seeding",
"description": "馃尡 A delightful way to seed test data into your database.",
"license": "MIT",
"author": "Gery Hirschfeld <gery.hirschfeld@w3tec.ch> (https://github.com/hirsch88)",
"main": "dist/typeorm-seeding.js",
"types": "dist/typeorm-seeding.d.ts",
"bin": {
"typeorm-seeding": "dist/cli.js"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/w3tecch/typeorm-seeding.git"
},
"scripts": {
"prebuild": "rimraf dist",
"format": "prettier --write \"src/**/*.ts\"",
Expand All @@ -23,18 +26,9 @@
"schema:drop": "ts-node ./node_modules/typeorm/cli.js schema:drop -c sample",
"schema:sync": "ts-node ./node_modules/typeorm/cli.js schema:sync -c sample",
"schema:log": "ts-node ./node_modules/typeorm/cli.js schema:log -c sample",
"seed:run": "ts-node ./src/cli.ts seed -c sample",
"seed:config": "ts-node ./src/cli.ts config -c sample"
"seed:run": "ts-node ./dist/cli.js seed -c sample",
"seed:config": "ts-node ./dist/cli.js config -c sample"
},
"license": "MIT",
"author": "w3tec.ch <info@w3tec.ch>",
"contributors": [
{
"name": "Gery Hirschfeld",
"email": "gery.hirschfeld@w3tec.ch",
"url": "https://github.com/hirsch88"
}
],
"devDependencies": {
"@semantic-release/git": "^9.0.0",
"@types/bcryptjs": "^2.4.2",
Expand All @@ -57,6 +51,7 @@
"sqlite": "^4.0.6",
"sqlite3": "^4.1.1",
"ts-jest": "^25.3.1",
"typeorm": "^0.2.24",
"typescript": "^3.8.3"
},
"dependencies": {
Expand Down Expand Up @@ -86,9 +81,5 @@
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"repository": {
"type": "git",
"url": "https://github.com/w3tecch/typeorm-seeding.git"
}
}
2 changes: 0 additions & 2 deletions sample/seeds/create-pets.seed.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Connection } from 'typeorm'
import { Seeder, Factory } from '../../src/types'
import { times } from '../../src/typeorm-seeding'
import { Pet } from '../entities/Pet.entity'
import { User } from '../entities/User.entity'

export default class CreatePets implements Seeder {
public async run(factory: Factory, connection: Connection): Promise<any> {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class ConfigCommand implements yargs.CommandModule {
async handler(args: yargs.Arguments) {
const log = console.log
const pkg = require('../../package.json')
log(chalk.bold(`typeorm-seeding v${(pkg as any).version}`))
log('馃尡 ' + chalk.bold(`TypeORM Seeding v${(pkg as any).version}`))
try {
const option = await getConnectionOption(
{
Expand Down
2 changes: 1 addition & 1 deletion src/commands/seed.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class SeedCommand implements yargs.CommandModule {
const log = console.log

const pkg = require('../../package.json')
log(chalk.bold(`typeorm-seeding v${(pkg as any).version}`))
log('馃尡 ' + chalk.bold(`TypeORM Seeding v${(pkg as any).version}`))
const spinner = ora('Loading ormconfig').start()

// Get TypeORM config file
Expand Down
11 changes: 3 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@
"lib": ["es5", "es6"],
"target": "es5",
"module": "commonjs",
"outDir": "./dist",
"moduleResolution": "node",
"importHelpers": true,
"declaration": true,
"removeComments": true,
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noImplicitAny": true,
"incremental": true,
"pretty": true,
"allowSyntheticDefaultImports": true,
"outDir": "./dist",
"baseUrl": "./",
"paths": { "*": ["types/*"] }
"noImplicitAny": true
},
"exclude": ["node_modules"]
}
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,10 @@
resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz#eef87a431300f6148c39a7f75f8cfeb218b2547e"
integrity sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw==

"@octokit/plugin-rest-endpoint-methods@3.5.1":
version "3.5.1"
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.5.1.tgz#f8882cfb8d7e8cc1deb0b50813fe233468c61a8d"
integrity sha512-MBB4IKIbSUAc+novVCN6eAiP3i7tNzCfYxt7mW0j9hJ3rW88ng6MnJm6F235GAaAvwdHOjN+3AfRnIV1kE0/5Q==
"@octokit/plugin-rest-endpoint-methods@3.5.2":
version "3.5.2"
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.5.2.tgz#5926c3806d883fff8df749b47ac4e2a38ec67e2b"
integrity sha512-i5GlEWm7k/SzBr7QrIOuas/1nNgr4JcmgM14TAKULVkv4L5mOY+pcVIUMU3qdYhFyblBFhigujav5seMnkqBnQ==
dependencies:
"@octokit/types" "^2.0.1"
deprecation "^2.3.1"
Expand Down Expand Up @@ -554,19 +554,19 @@
universal-user-agent "^5.0.0"

"@octokit/rest@^17.0.0":
version "17.2.0"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-17.2.0.tgz#bdffe261d9d6fee5193953ae35772f7aecd57867"
integrity sha512-/r1yhGaGFCz/oghBkWKWQY36hpC1mG3ouAW6JHKgPzqOND02eZ1ZG+mJ98Ww3iq3SrFzyNHDAoyT7Er7iuut5A==
version "17.2.1"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-17.2.1.tgz#a071903f4bdcb49ddb3262b95ac3143f0a23f42a"
integrity sha512-5TLsk0BYnfUhOlA2mGMdVmnm8UPqfDq5q3T58pq/vudfkOmN3cFK5wI+sR7SvN+3m4dynU2733yzSXKAoIvpKg==
dependencies:
"@octokit/core" "^2.4.3"
"@octokit/plugin-paginate-rest" "^2.0.0"
"@octokit/plugin-request-log" "^1.0.0"
"@octokit/plugin-rest-endpoint-methods" "3.5.1"
"@octokit/plugin-rest-endpoint-methods" "3.5.2"

"@octokit/types@^2.0.0", "@octokit/types@^2.0.1":
version "2.8.1"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.8.1.tgz#935ba46c3abb745e913b1110b87f1ca75f2a3792"
integrity sha512-1fzZcYTvPkrJsS9MX7oTMun447Q/tJo5XOtXQsKqmbTbwQV1f+R58pDmjDbzeFbQ7KzMJaDN7Sq4bCh/WHmgLg==
version "2.8.2"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.8.2.tgz#08d1165354637ef32c3134b4b39b7f17bdc17aef"
integrity sha512-8cs4DjRAzFoGo1ieUhDyrTdPK016V3JD/H00nbnojSCUYfOXnnJ1owUaAT/3OebTzp/tgdTG6M+8PdCTJzI+/w==
dependencies:
"@types/node" ">= 8"

Expand Down Expand Up @@ -4743,9 +4743,9 @@ meant@~1.0.1:
integrity sha512-UakVLFjKkbbUwNWJ2frVLnnAtbb7D7DsloxRd3s/gDpI8rdv8W5Hp3NaDb+POBI1fQdeussER6NB8vpcRURvlg==

mem@>=4.0.0, mem@^1.1.0, mem@^4.0.0:
version "6.0.1"
resolved "https://registry.yarnpkg.com/mem/-/mem-6.0.1.tgz#3f8ad1b0f8c4e00daf07f104e95b9d78131d7908"
integrity sha512-uIRYASflIsXqvKe+7aXbLrydaRzz4qiK6amqZDQI++eRtW3UoKtnDcGeCAOREgll7YMxO5E4VB9+3B0LFmy96g==
version "6.1.0"
resolved "https://registry.yarnpkg.com/mem/-/mem-6.1.0.tgz#846eca0bd4708a8f04b9c3f3cd769e194ae63c5c"
integrity sha512-RlbnLQgRHk5lwqTtpEkBTQ2ll/CG/iB+J4Hy2Wh97PjgZgXgWJWrFF+XXujh3UUVLvR4OOTgZzcWMMwnehlEUg==
dependencies:
map-age-cleaner "^0.1.3"
mimic-fn "^3.0.0"
Expand Down Expand Up @@ -5981,9 +5981,9 @@ qs@~6.5.2:
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==

query-string@^6.8.2:
version "6.12.0"
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.12.0.tgz#fa0fe5b3ddf4d040d1236b80672949ab33d5cf80"
integrity sha512-aoiFW9ZU7jP8Itjqfpw80Qe7RoyCIhFrW522sdsp9LG92pat6CCG3d8qNZBaUi71FsEjIfLjx9Ky347FtVoqXA==
version "6.12.1"
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.12.1.tgz#2ae4d272db4fba267141665374e49a1de09e8a7c"
integrity sha512-OHj+zzfRMyj3rmo/6G8a5Ifvw3AleL/EbcHMD27YA31Q+cO5lfmQxECkImuNVjcskLcvBRVHNAB3w6udMs1eAA==
dependencies:
decode-uri-component "^0.2.0"
split-on-first "^1.0.0"
Expand Down Expand Up @@ -6810,9 +6810,9 @@ sqlite3@^4.1.1:
request "^2.87.0"

sqlite@^4.0.6:
version "4.0.6"
resolved "https://registry.yarnpkg.com/sqlite/-/sqlite-4.0.6.tgz#d6fbd4dbf4956934f0ef31ebd6ab463e8feb61d9"
integrity sha512-irh1vzqke8XzO+BZQnFAX9doIsILFxpjDPWSX005thjxqx+GXApAMarNkM6Ta7S/yT6KMJ9bniwiD0bRcQuuFQ==
version "4.0.7"
resolved "https://registry.yarnpkg.com/sqlite/-/sqlite-4.0.7.tgz#45d9843cf8daff07eaa2446e936583c687981ffb"
integrity sha512-1bBO+me3gXRfqwRR3K9aNDoSbTkQ87o6fSjj/BE2gSHHsK3qIDR+LoFZHgZ6kSPdFBoLTsy5/w/+8PBBaK+lvg==

sshpk@^1.7.0:
version "1.16.1"
Expand Down

0 comments on commit 02162ec

Please sign in to comment.