Skip to content

Commit

Permalink
chore: build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
six5536 committed Sep 29, 2024
1 parent c6fe100 commit 45b5b9f
Show file tree
Hide file tree
Showing 19 changed files with 33 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://npm.pkg.github.com'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/superenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ the plain object enum converted to a superenum

## Defined in

[superenum.ts:523](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L523)
[superenum.ts:523](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L523)
18 changes: 9 additions & 9 deletions docs/interfaces/EnumExtensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ the enum value, or undefined if the value cannot be matched to the enum

#### Defined in

[superenum.ts:120](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L120)
[superenum.ts:120](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L120)

***

Expand Down Expand Up @@ -73,7 +73,7 @@ the enum represented by the key, or undefined if the key cannot be matched to th

#### Defined in

[superenum.ts:132](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L132)
[superenum.ts:132](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L132)

***

Expand Down Expand Up @@ -104,7 +104,7 @@ the enum key represented by the value, or undefined if the value cannot be match

#### Defined in

[superenum.ts:144](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L144)
[superenum.ts:144](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L144)

***

Expand Down Expand Up @@ -140,7 +140,7 @@ true if the metadata was associated with the value, otherwise false

#### Defined in

[superenum.ts:154](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L154)
[superenum.ts:154](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L154)

***

Expand Down Expand Up @@ -174,7 +174,7 @@ the metadata associated with the enum value

#### Defined in

[superenum.ts:165](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L165)
[superenum.ts:165](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L165)

***

Expand All @@ -200,7 +200,7 @@ iterator over the enum values

#### Defined in

[superenum.ts:180](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L180)
[superenum.ts:180](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L180)

***

Expand All @@ -226,7 +226,7 @@ iterator over the enum values

#### Defined in

[superenum.ts:195](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L195)
[superenum.ts:195](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L195)

***

Expand All @@ -252,7 +252,7 @@ iterator over the enum values

#### Defined in

[superenum.ts:210](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L210)
[superenum.ts:210](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L210)

***

Expand All @@ -278,4 +278,4 @@ iterator over the enum values

#### Defined in

[superenum.ts:225](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L225)
[superenum.ts:225](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L225)
4 changes: 2 additions & 2 deletions docs/interfaces/EnumOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Options for the [Superenum](Superenum.md) and [Superenum.fromArray](Superenum.md
#### Defined in

[superenum.ts:62](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L62)
[superenum.ts:62](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L62)

***

Expand All @@ -26,4 +26,4 @@ Options for the [Superenum](Superenum.md) and [Superenum.fromArray](Superenum.md
#### Defined in

[superenum.ts:63](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L63)
[superenum.ts:63](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L63)
2 changes: 1 addition & 1 deletion docs/interfaces/FromKeyOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Ignore case when getting the enum value from the key

#### Defined in

[superenum.ts:83](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L83)
[superenum.ts:83](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L83)
2 changes: 1 addition & 1 deletion docs/interfaces/FromValueOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Ignore case when validating the enum value

#### Defined in

[superenum.ts:73](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L73)
[superenum.ts:73](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L73)
2 changes: 1 addition & 1 deletion docs/interfaces/KeyFromValueOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Ignore case when getting the enum key from the value

#### Defined in

[superenum.ts:93](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L93)
[superenum.ts:93](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L93)
6 changes: 3 additions & 3 deletions docs/interfaces/Superenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ the plain object enum converted to a superenum

## Defined in

[superenum.ts:241](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L241)
[superenum.ts:241](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L241)

## Methods

Expand Down Expand Up @@ -89,7 +89,7 @@ the plain object enum converted to a superenum

#### Defined in

[superenum.ts:268](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L268)
[superenum.ts:268](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L268)

***

Expand Down Expand Up @@ -135,4 +135,4 @@ the plain array enum converted to a superenum

#### Defined in

[superenum.ts:292](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L292)
[superenum.ts:292](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L292)
2 changes: 1 addition & 1 deletion docs/type-aliases/ArrayEnum.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Array Enum declaration

## Defined in

[superenum.ts:39](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L39)
[superenum.ts:39](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L39)
2 changes: 1 addition & 1 deletion docs/type-aliases/ArrayEnumToObjectEnum.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Convert an ArrayEnum type to an ObjectEnum

## Defined in

[superenum.ts:49](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L49)
[superenum.ts:49](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L49)
2 changes: 1 addition & 1 deletion docs/type-aliases/EnumKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Enum keys

## Defined in

[superenum.ts:29](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L29)
[superenum.ts:29](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L29)
2 changes: 1 addition & 1 deletion docs/type-aliases/EnumType.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Get the type of an enum from a superenum, removing the [EnumExtensions](../inte

## Defined in

[superenum.ts:56](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L56)
[superenum.ts:56](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L56)
2 changes: 1 addition & 1 deletion docs/type-aliases/EnumValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Enum values

## Defined in

[superenum.ts:34](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L34)
[superenum.ts:34](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L34)
2 changes: 1 addition & 1 deletion docs/type-aliases/ObjectEnum.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Object enum declaration

## Defined in

[superenum.ts:44](https://github.com/ncoderz/superenum/blob/d33bc410e0367e18d55ed211c0ba0541eb217d41/src/superenum.ts#L44)
[superenum.ts:44](https://github.com/ncoderz/superenum/blob/c6fe1004db5e60151f690d0ad11d6a45c011546d/src/superenum.ts#L44)
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default [
{
vars: 'all',
args: 'none',
caughtErrors: 'none',
},
],

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dist"
],
"scripts": {
"build": "tsc && tsc --module ES6 --outDir 'dist/esm' && rollup -c && run build-doc",
"build": "run lint && tsc && tsc --module ES6 --outDir 'dist/esm' && rollup -c && run build-doc",
"build-cjs": "tsc",
"build-esm": "tsc --module ES6 --outDir 'dist/esm'",
"build-iife": "tsc && rollup -c",
Expand Down
2 changes: 1 addition & 1 deletion test/superenum.dist.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
// eslint-disable-next-line @typescript-eslint/no-require-imports
const { superenum } = require('../dist/browser/superenum.min');

import { superenumTests } from './superenum-test';
Expand Down

0 comments on commit 45b5b9f

Please sign in to comment.