Skip to content

Commit 11ee113

Browse files
authored
Merge branch 'BuilderIO:main' into preserve-behavior
2 parents 87f4dbb + 4df0f00 commit 11ee113

File tree

6 files changed

+48
-8
lines changed

6 files changed

+48
-8
lines changed

.github/workflows/linter.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: PR Prettier Check
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- ready_for_review
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
########### LINT PACKAGE ############
16+
lint-package:
17+
name: Lint Package
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- uses: pnpm/[email protected]
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: 20.10.0
29+
cache: 'pnpm'
30+
registry-url: https://registry.npmjs.org/
31+
32+
- run: corepack enable
33+
34+
- name: Install NPM Dependencies
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Prettier Check
38+
if: ${{ always() }}
39+
run: pnpm fmt.check

.github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PR Title Checks
1+
name: PR Title Check
22

33
on:
44
pull_request_target:

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@builder.io/partytown",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "Relocate resource intensive third-party scripts off of the main thread and into a web worker.",
55
"license": "MIT",
66
"main": "index.cjs",
@@ -82,7 +82,8 @@
8282
"test.unit": "uvu -r tsm tests/unit",
8383
"tsc.watch": "tsc -w",
8484
"version": "npm run build.prod",
85-
"fmt": "prettier --config package.json --write src"
85+
"fmt": "prettier --config package.json --write src",
86+
"fmt.check": "prettier --config package.json --check src"
8687
},
8788
"devDependencies": {
8889
"@microsoft/api-extractor": "^7.19.5",

src/integration/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface PartytownConfig {
4747
export type PartytownForwardProperty = string;
4848

4949
// @public
50-
export const partytownSnippet: (config?: PartytownConfig | undefined) => string;
50+
export const partytownSnippet: (config?: PartytownConfig) => string;
5151

5252
// @public (undocumented)
5353
export type ResolveUrlType = 'fetch' | 'xhr' | 'script' | 'iframe' | 'image';

src/utils/api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export interface LibDirOptions {
2424
export function libDirPath(opts?: LibDirOptions): string;
2525

2626
// @public
27-
export function partytownRollup(opts: PartytownRollupOptions): {
27+
export function partytownRollup(opts?: PartytownRollupOptions): {
2828
name: string;
2929
};
3030

3131
// @public (undocumented)
3232
export interface PartytownRollupOptions {
3333
debug?: boolean;
34-
dest: string;
34+
dest?: string;
3535
}
3636

3737
// @public

0 commit comments

Comments
 (0)