An open API service indexing awesome lists of open source software.

https://github.com/beace/sequelize-example

sequelize v7 typescript test example
https://github.com/beace/sequelize-example

Last synced: about 2 months ago
JSON representation

sequelize v7 typescript test example

Awesome Lists containing this project

README

        

# sequelize-example

Testing the [[email protected]](https://github.com/sequelize/sequelize) in typescript.

## test steps

1. clone and checkout the main branch

```
git clone https://github.com/sequelize/sequelize.git
```

2. modify the `package.json`

```json
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.js",
"types": "./types/index.d.ts"
},
"./_non-semver-use-at-your-own-risk_/*": {
"default": "./lib/*",
"types": "./types/*.d.ts"
},
"./package.json": "./package.json"
}
```

3. npm link in sequelize project root path

```
npm link
```

4. test sequelize typescript compile

```
cd sequelize-example && yarn
yarn build:purejs
yarn build:commonjs
yarn build:nodenext
yarn build:internal
```