From 2e6a53715118c4ac87bf85ffd38bf5d9ce2b7e69 Mon Sep 17 00:00:00 2001 From: gioboa Date: Tue, 9 Jan 2024 22:41:06 +0100 Subject: [PATCH 1/3] 0.8.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 64b4cab4..d7b2dc7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "@builder.io/partytown", - "version": "0.8.1", + "version": "0.8.2", "lockfileVersion": 2, "requires": true, "dev": true, "packages": { "": { "name": "@builder.io/partytown", - "version": "0.8.1", + "version": "0.8.2", "license": "MIT", "bin": { "partytown": "bin/partytown.cjs" diff --git a/package.json b/package.json index f9fa6bfd..eb63e409 100644 --- a/package.json +++ b/package.json @@ -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", From da4e6f63ade3842c6ce66862e07d3944f2cb46f7 Mon Sep 17 00:00:00 2001 From: Giorgio Boa <35845425+gioboa@users.noreply.github.com> Date: Tue, 9 Jan 2024 23:11:39 +0100 Subject: [PATCH 2/3] chore: update api md (#532) --- src/integration/api.md | 2 +- src/utils/api.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/integration/api.md b/src/integration/api.md index 4aed4fd5..1bbe8937 100644 --- a/src/integration/api.md +++ b/src/integration/api.md @@ -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'; diff --git a/src/utils/api.md b/src/utils/api.md index 601b165c..b002e5e0 100644 --- a/src/utils/api.md +++ b/src/utils/api.md @@ -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 From 4df0f00a7392545a4134372c6e69781401660258 Mon Sep 17 00:00:00 2001 From: Giorgio Boa <35845425+gioboa@users.noreply.github.com> Date: Tue, 9 Jan 2024 23:46:40 +0100 Subject: [PATCH 3/3] chore: improve GH workflows (#533) --- .github/workflows/linter.yml | 39 ++++++++++++++++++++++++++++++++++++ .github/workflows/pr.yml | 2 +- package.json | 3 ++- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..a378ac50 --- /dev/null +++ b/.github/workflows/linter.yml @@ -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/action-setup@v2.2.4 + + - 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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 00943cfa..8b98cdf8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,4 @@ -name: PR Title Checks +name: PR Title Check on: pull_request_target: diff --git a/package.json b/package.json index eb63e409..b72a656a 100644 --- a/package.json +++ b/package.json @@ -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",