Skip to content

Commit

Permalink
[meta] update package.json, actions; regen lockfile, update tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 21, 2022
1 parent 3742163 commit f6134ec
Show file tree
Hide file tree
Showing 5 changed files with 827 additions and 309 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/salus-scan.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Salus Security Scan

on: [pull_request]
on: [pull_request, push]

jobs:
scan:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Static Analysis

on: [pull_request]
on: [pull_request, push]

jobs:
static-analysis:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Unit Tests

on: [pull_request]
on: [pull_request, push]

jobs:
matrix:
Expand All @@ -19,7 +19,9 @@ jobs:
needs: [matrix]
name: 'On Node ${{ matrix.node-version }}'
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.node-version == 18 && true || false }}
strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
steps:
Expand All @@ -31,3 +33,10 @@ jobs:
uses: bahmutov/npm-install@v1
- name: Unit Tests
run: yarn jest

tests:
needs: [test]
name: 'unit tests'
runs-on: ubuntu-latest
steps:
- run: echo 'tests completed'
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
".": [
{
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./dist/index.js"
],
"./package.json": "./package.json"
},
"scripts": {
Expand Down Expand Up @@ -41,7 +44,10 @@
"jest-chrome": "^0.7.2",
"prettier": "^2.5.1",
"ts-jest": "^27.1.3",
"tsup": "^5.11.13",
"tsup": "^5.12.6",
"typescript": "^4.4.4"
},
"engines": {
"node": ">= 12"
}
}
Loading

0 comments on commit f6134ec

Please sign in to comment.