Skip to content

Commit

Permalink
fix: Npm package not handling correctly entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebodega committed Dec 13, 2021
1 parent 133832b commit b51a099
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["package.json", "yarn.lock", "CHANGELOG.md"],
"message": "chore: Release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/npm",
"@semantic-release/github"
]
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"lint": "eslint \"src/**/*.ts\" \"sample/**/*.ts\" --fix",
"lint:ci": "eslint \"src/**/*.ts\" \"sample/**/*.ts\"",
"prebuild": "rimraf dist",
"prepack": "yarn build",
"schema:drop": "ts-node ./node_modules/typeorm/cli.js schema:drop",
"schema:log": "ts-node ./node_modules/typeorm/cli.js schema:log",
"schema:sync": "ts-node ./node_modules/typeorm/cli.js schema:sync",
Expand Down
4 changes: 1 addition & 3 deletions src/commands/config.command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Argv, Arguments, CommandModule, exit } from 'yargs'
import { bold, red } from 'chalk'
import { red } from 'chalk'
import { configureConnection, getConnectionOptions } from '../connection'

interface ConfigCommandArguments extends Arguments {
Expand Down Expand Up @@ -33,8 +33,6 @@ export class ConfigCommand implements CommandModule {
}

async handler(args: ConfigCommandArguments) {
const { default: pkg } = await import('../../package.json')
console.log('🌱 ' + bold(`TypeORM Seeding v${pkg.version}`))
try {
configureConnection({
root: args.root,
Expand Down
4 changes: 1 addition & 3 deletions src/commands/seed.command.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Arguments, Argv, CommandModule, exit } from 'yargs'
import ora, { Ora } from 'ora'
import { bold, gray } from 'chalk'
import { gray } from 'chalk'
import { configureConnection, fetchConnection } from '../connection'
import { useFactories } from '../useFactories'
import { Seeder } from '../seeder'
Expand Down Expand Up @@ -44,8 +44,6 @@ export class SeedCommand implements CommandModule {
}

async handler(args: SeedCommandArguments) {
const { default: pkg } = await import('../../package.json')
console.log('🌱 ' + bold(`TypeORM Seeding v${pkg.version}`))
const spinner = ora('Loading ormconfig').start()

// Get TypeORM config file
Expand Down

0 comments on commit b51a099

Please sign in to comment.