Skip to content

Commit 8ee3812

Browse files
committed
fix: Update build config and make sure testing helpers are exported in the package.
1 parent 0a2faaf commit 8ee3812

File tree

17 files changed

+2126
-3386
lines changed

17 files changed

+2126
-3386
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# don't lint the linter config
2-
.eslintrc.cjs
2+
.eslintrc.js
33
# don't ever lint node_modules
44
node_modules
55
# don't lint build output (make sure it's set to your correct build folder name)

.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"extends": ["@makerx/eslint-config"],
7+
"rules": {
8+
"@typescript-eslint/no-explicit-any": "off"
9+
}
10+
}

.eslintrc.cjs

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

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ updates:
66
directory: '/'
77
schedule:
88
interval: 'weekly'
9-
ignore:
10-
- dependency-name: 'node-fetch'
11-
# node-fetch v3.* is esm-only
12-
versions: ['3.x']

.github/workflows/pr.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ on:
88

99
permissions:
1010
contents: read
11-
packages: read
11+
checks: write
1212

1313
jobs:
1414
pull_request:
1515
uses: makerxstudio/shared-config/.github/workflows/node-ci.yml@main
1616
with:
17+
node-version: 20.x
1718
audit-script: npm run audit
19+
output-test-results: true
20+
test-script: npm run test:ci
21+
run-build: true

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@ on:
77

88
permissions:
99
contents: read
10-
packages: write
10+
checks: write
1111

1212
jobs:
1313
ci:
1414
uses: makerxstudio/shared-config/.github/workflows/node-ci.yml@main
1515
with:
16+
node-version: 20.x
1617
audit-script: npm run audit
18+
output-test-results: true
19+
test-script: npm run test:ci
1720

1821
publish:
1922
needs: ci
2023
uses: makerxstudio/shared-config/.github/workflows/node-publish-public.yml@main
24+
with:
25+
node-version: 20.x
2126
secrets:
2227
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ build/
4949
# Coverage report
5050
coverage
5151

52+
# Test results
53+
test-results.xml
54+
5255
# Website & Code docs generation
5356
code-docs/
5457
out/

.nsprc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
{}
1+
{
2+
}

.tstoolkitrc.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { TsToolkitConfig } from "@makerx/ts-toolkit";
2+
3+
const config: TsToolkitConfig = {
4+
packageConfig: {
5+
srcDir: 'src',
6+
outDir: 'dist',
7+
moduleType: 'module',
8+
main: 'index.ts',
9+
exports: {
10+
'.': 'index.ts',
11+
'./testing': 'testing.ts',
12+
'./subscriptions': 'subscriptions/index.ts'
13+
}
14+
}
15+
}
16+
export default config

0 commit comments

Comments
 (0)