Skip to content

Commit

Permalink
feat: Replace ts-node typeorm tasks with node dist js
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan committed Aug 4, 2019
1 parent bb9cedf commit 19ee2e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ormconfig-address.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"logging": true,
"database": "address-dev.sqlite",
"entities": [
"packages/neuron-wallet/src/database/address/entities/**/*.ts"
"packages/neuron-wallet/dist/database/address/entities/**/*.js"
],
"migrations": [
"packages/neuron-wallet/src/database/address/migrations/**/*.ts"
"packages/neuron-wallet/dist/database/address/migrations/**/*.js"
],
"subscribers": [
"packages/neuron-wallet/src/database/address/subscriber/**/*.ts"
"packages/neuron-wallet/dist/database/address/subscriber/**/*.js"
],
"cli": {
"entitiesDir": "packages/neuron-wallet/src/database/address/entities",
Expand Down
6 changes: 3 additions & 3 deletions ormconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"logging": true,
"database": "cell-dev.sqlite",
"entities": [
"packages/neuron-wallet/src/database/chain/entities/**/*.ts"
"packages/neuron-wallet/dist/database/chain/entities/**/*.js"
],
"migrations": [
"packages/neuron-wallet/src/database/chain/migrations/**/*.ts"
"packages/neuron-wallet/dist/database/chain/migrations/**/*.js"
],
"subscribers": [
"packages/neuron-wallet/src/database/chain/subscriber/**/*.ts"
"packages/neuron-wallet/dist/database/chain/subscriber/**/*.js"
],
"cli": {
"entitiesDir": "packages/neuron-wallet/src/database/chain/entities",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"test:e2e": "yarn build && ./scripts/copy-ui-files.sh && lerna run --parallel test:e2e",
"lint": "lerna run --stream lint",
"postinstall": "lerna run rebuild:nativemodules",
"db:chain": "ts-node ./node_modules/.bin/typeorm",
"db:address": "ts-node ./node_modules/.bin/typeorm --config ormconfig-address.json"
"db:chain": "node ./node_modules/.bin/typeorm",
"db:address": "node ./node_modules/.bin/typeorm --config ormconfig-address.json"
},
"husky": {
"hooks": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { pubkeyToAddress } from '@nervosnetwork/ckb-sdk-utils'
import { Transaction, TransactionWithoutHash, TransactionStatus } from 'types/cell-types'
import TransactionEntity from 'database/chain/entities/transaction'
import LockUtils from 'models/lock-utils'
import { CONNECTION_NOT_FOUND_NAME } from '../../database/chain/ormconfig'
import { CONNECTION_NOT_FOUND_NAME } from 'database/chain/ormconfig'

export interface TransactionsByAddressesParam {
pageNo: number
Expand Down

0 comments on commit 19ee2e7

Please sign in to comment.