Skip to content

Commit

Permalink
Version Packages (next) (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Aug 8, 2024
1 parent 708f25e commit 5aca333
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"loud-rivers-pretend",
"many-spies-fix",
"rude-berries-rescue",
"rude-pets-hope",
"shy-turkeys-count",
"silly-seas-impress",
"swift-planets-rescue",
Expand Down
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# @heymp/scratchpad

## 1.0.0-next.11

### Minor Changes

- 708f25e: Support ts config files

`scratchpad.config.ts`

```ts
import { Config } from "@heymp/scratchpad/src/config.js";

export function hi(name: string) {
console.log(`Hi there ${name}`);
}

declare global {
interface Window {
hi: typeof hi;
}
}

export default {
playwright: async (args) => {
const { context } = args;
await context.exposeFunction("hi", hi);
},
} satisfies Config;
```

`test.ts`

```.ts
/// <reference path="./scratchpad.config.ts" />

window.hi('Bob');
```

## 1.0.0-next.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heymp/scratchpad",
"description": "Run TS/JS snippets in a locally",
"version": "1.0.0-next.10",
"version": "1.0.0-next.11",
"main": "bin/cli.js",
"type": "module",
"bin": {
Expand Down

0 comments on commit 5aca333

Please sign in to comment.