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
- Host: GitHub
- URL: https://github.com/beace/sequelize-example
- Owner: Beace
- Created: 2022-06-14T04:29:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-14T04:31:49.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T07:31:06.602Z (4 months ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```