#How to build d.ts files?

8 messages · Page 1 of 1 (latest)

frail current
#

I have some problem
My d.ts files not compiled in out dir, so my project is broken

What should i do?

my tsconfig:

{
    "extends": "../tsconfig.json",
    "compilerOptions": {
        "typeRoots": ["./node_modules/@types/", "./typings/", "./node_modules/@ragempcommunity/"],
        "baseUrl": "./src",
        "outDir": "../packages/server",
        "module": "commonjs",
        "types": ["types-server"]
    }
}

spare matrix
#

it lets you specify what folder to emit the typings file to

#

Also, noticed you have a Makefile, which is rather uncommon in JS/TS land
Are you sure you really need it / that's the right way to do things?

frail current
#

i use makefile for run exe file and etc
or migrate my database

#

like this

test:
    $(DEPLOY_DIR)/deploy.ps1

create-migration:
    (cd migrations; goose create ${FNAME} sql)

migrate-up:
    (cd migrations; goose postgres ${GOOSE_LOCAL_DB} up)

migrate-down:
    (cd migrations; goose postgres ${GOOSE_LOCAL_DB} down)

stage-migrate-up:
    (cd migrations; goose postgres ${GOOSE_STAGE_DB} up)

#

do you mean use it in scripts?

frail current
#

@spare matrix