Skip to content

Commit 0234119

Browse files
Merge pull request #40 from jcoreio/typescript
feat: convert to typescript, use toolchains
2 parents 162fa3f + 67763ad commit 0234119

File tree

74 files changed

+7409
-27160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+7409
-27160
lines changed

.babelrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = function (api) {
3+
const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api)
4+
return {
5+
...base,
6+
}
7+
}

.babelrc.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
1-
version: 2
1+
# created by @jcoreio/toolchain-circle
2+
3+
version: 2.1
24
jobs:
35
build:
46
docker:
5-
- image: circleci/node:12.16
7+
- image: cimg/node:20.3.0
68

79
steps:
810
- checkout
9-
1011
- run:
1112
name: Setup NPM Token
1213
command: |
13-
yarn config set registry "https://registry.npmjs.org/"
14-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
15-
echo "registry=https://registry.npmjs.org/" >> .npmrc
16-
17-
# https://github.com/atlassian/react-beautiful-dnd/issues/1007#issuecomment-446415426
14+
npm config set \
15+
"//registry.npmjs.org/:_authToken=$NPM_TOKEN" \
16+
"registry=https://registry.npmjs.org/"
1817
- run:
19-
name: Workaround for Flow crashing
20-
command: echo "server.max_workers=1" >> .flowconfig
21-
18+
name: Corepack enable
19+
command: sudo corepack enable
2220
- run:
2321
name: Install Dependencies
24-
command: yarn install --frozen-lockfile
25-
22+
command: pnpm install --frozen-lockfile
2623
- run:
27-
name: build
28-
command: yarn run prepublishOnly
29-
- run:
30-
name: upload test coverage
31-
command: yarn codecov
24+
name: Prepublish
25+
command: |
26+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish
3227
- run:
33-
name: release
34-
command: yarn run semantic-release
28+
name: Release
29+
command: |
30+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release
31+
32+
workflows:
33+
build:
34+
jobs:
35+
- build:
36+
context:
37+
- npm-release
38+
- github-release

.eslintrc

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = {
3+
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')],
4+
env: {
5+
es6: true,
6+
commonjs: true,
7+
},
8+
}

.flowconfig

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
coverage
1+
/dist
22
.nyc_output
33
node_modules
4-
lib
5-
es
6-
.eslintcache
7-
/*.js
8-
/*.js.flow
9-
!/.babelrc.js
4+
/coverage

.mocharc.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* eslint-env node, es2018 */
2+
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
3+
module.exports = {
4+
...base,
5+
}

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ refactor-proof in raw queries than embedding raw identifiers.
1515
# Installation
1616

1717
```sh
18-
npm install --save @jcoreio/sequelize-sql-tag
18+
pnpm install --save @jcoreio/sequelize-sql-tag
1919
```
2020

2121
# Compatibility

flow-typed/npm/@babel/cli_vx.x.x.js

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)