Skip to content

Commit

Permalink
Merge branch 'BuilderIO:main' into preserve-behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
franpeza authored Jan 10, 2024
2 parents 87f4dbb + 4df0f00 commit 11ee113
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: PR Prettier Check

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- ready_for_review

permissions:
pull-requests: read

jobs:
########### LINT PACKAGE ############
lint-package:
name: Lint Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/[email protected]

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.10.0
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

- run: corepack enable

- name: Install NPM Dependencies
run: pnpm install --frozen-lockfile

- name: Prettier Check
if: ${{ always() }}
run: pnpm fmt.check
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Title Checks
name: PR Title Check

on:
pull_request_target:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/partytown",
"version": "0.8.1",
"version": "0.8.2",
"description": "Relocate resource intensive third-party scripts off of the main thread and into a web worker.",
"license": "MIT",
"main": "index.cjs",
Expand Down Expand Up @@ -82,7 +82,8 @@
"test.unit": "uvu -r tsm tests/unit",
"tsc.watch": "tsc -w",
"version": "npm run build.prod",
"fmt": "prettier --config package.json --write src"
"fmt": "prettier --config package.json --write src",
"fmt.check": "prettier --config package.json --check src"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.19.5",
Expand Down
2 changes: 1 addition & 1 deletion src/integration/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface PartytownConfig {
export type PartytownForwardProperty = string;

// @public
export const partytownSnippet: (config?: PartytownConfig | undefined) => string;
export const partytownSnippet: (config?: PartytownConfig) => string;

// @public (undocumented)
export type ResolveUrlType = 'fetch' | 'xhr' | 'script' | 'iframe' | 'image';
Expand Down
4 changes: 2 additions & 2 deletions src/utils/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export interface LibDirOptions {
export function libDirPath(opts?: LibDirOptions): string;

// @public
export function partytownRollup(opts: PartytownRollupOptions): {
export function partytownRollup(opts?: PartytownRollupOptions): {
name: string;
};

// @public (undocumented)
export interface PartytownRollupOptions {
debug?: boolean;
dest: string;
dest?: string;
}

// @public
Expand Down

0 comments on commit 11ee113

Please sign in to comment.