Skip to content

Commit 7c61e52

Browse files
authored
Merge pull request #226 from jshemas/dist
updating the tsc build process to better support both ESM and commonJS
2 parents d56892c + e87e976 commit 7c61e52

Some content is hidden

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

41 files changed

+671
-2223
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ coverage/
22
dist/
33
node_modules/
44
example/
5+
types/

.eslintrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"extends": [
33
"airbnb-base",
44
"airbnb-typescript/base",
5-
"plugin:promise/recommended"
5+
"plugin:promise/recommended",
6+
"plugin:@typescript-eslint/recommended-type-checked",
7+
"plugin:@typescript-eslint/stylistic-type-checked"
68
],
79
"plugins": [
810
"promise"
@@ -11,6 +13,12 @@
1113
"project": "./tsconfig.json"
1214
},
1315
"rules": {
16+
"@typescript-eslint/no-explicit-any": "warn",
17+
"@typescript-eslint/no-unsafe-argument": "warn",
18+
"@typescript-eslint/no-unsafe-assignment": "warn",
19+
"@typescript-eslint/no-unsafe-call": "warn",
20+
"@typescript-eslint/no-unsafe-member-access": "warn",
21+
"@typescript-eslint/no-unsafe-return": "warn",
1422
"import/no-named-as-default": 0,
1523
"max-len": ["error", {
1624
"code": 120,

.github/workflows/node.js.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
node-version:
1919
- 18
2020
- 20
21+
- 22
2122
steps:
2223
- uses: actions/checkout@v3
2324
- name: Use Node.js ${{ matrix.node-version }}
@@ -30,6 +31,8 @@ jobs:
3031
run: npm run eslint
3132
- name: Running Typescript
3233
run: npm run build
34+
- name: Running Typescript Declaration
35+
run: npm run build:declaration
3336
- name: Unit Testing
3437
run: npm run mocha:unit
3538
- name: Integration Testing

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pids
1212
logs
1313
results
1414
node_modules
15+
dist
1516

1617
.nyc_output/
1718
coverage/

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 6.6.0
4+
5+
- Updating the `tsc` build process to better support both `ESM` and `commonJS`
6+
- Fixed issue where some meta tags would always come back as array even thought there was only ever one meta tag.
7+
- Removed the `dist` folder from version control
8+
- Start running node22 in the CI pipeline
9+
- General typescript clean up
10+
- Example service will only return the `result` of OGS now
11+
- Updating dependencies
12+
313
## 6.5.2
414

515
- adding a new favicon fallback using appIcon

dist/index.js

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

dist/lib/extract.js

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

0 commit comments

Comments
 (0)