generated from un-ts/mono-lib-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: bump size-limit, migrate to ESM
- Loading branch information
Showing
14 changed files
with
8,770 additions
and
4,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: 'CodeQL' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '58 4 * * 2' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: | ||
- javascript | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: +security-and-quality | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: '/language:${{ matrix.language }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
declare module '@size-limit/esbuild/convert-config' { | ||
declare module 'size-limit' { | ||
import { BuildOptions } from 'esbuild' | ||
|
||
function convertConfig(esbuildConfig: BuildOptions, configPath: string): void | ||
export interface SizeLimitConfig { | ||
configPath: string | ||
saveBundle: string | ||
} | ||
|
||
export = convertConfig | ||
} | ||
|
||
declare module '@size-limit/esbuild/get-config' { | ||
import { BuildOptions } from 'esbuild' | ||
|
||
function getConfig( | ||
config: { | ||
configPath: string | ||
saveBundle: string | ||
}, | ||
check: { | ||
esbuild?: false | ||
config?: string | ||
esbuildConfig: BuildOptions | ||
esbuildOutfile: string | ||
modifyEsbuildConfig?(esbuildConfig: BuildOptions): BuildOptions | ||
}, | ||
esbuildOutfile: string, | ||
): Promise<BuildOptions> | ||
export interface SizeLimitCheck { | ||
import?: string | ||
files: string[] | string | ||
ignore?: string[] | ||
esbuild?: false | ||
config?: string | ||
esbuildConfig: BuildOptions | ||
esbuildOutfile: string | ||
modifyEsbuildConfig?(esbuildConfig: BuildOptions): BuildOptions | ||
} | ||
|
||
export = getConfig | ||
export const processImport: ( | ||
check: SizeLimitCheck, | ||
output: string, | ||
) => Promise<void> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.