Init Changesets (#4)

This commit is contained in:
Ollie Taylor
2023-02-23 13:29:46 +00:00
committed by GitHub
10 changed files with 1561 additions and 31 deletions
+8
View File
@@ -0,0 +1,8 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
+11
View File
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
+4 -4
View File
@@ -6,15 +6,15 @@ module.exports = {
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
'svelte3/typescript': () => require('typescript'),
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
ecmaVersion: 2020,
},
env: {
browser: true,
es2017: true,
node: true
}
node: true,
},
};
+10 -9
View File
@@ -3,6 +3,9 @@ on:
push:
branches:
- 'main'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
@@ -19,13 +22,11 @@ jobs:
with:
cmd: install --frozen-lockfile
- name: yarn build
uses: borales/actions-yarn@v4
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
cmd: build --frozen-lockfile
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./package.json
publish: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+6 -2
View File
@@ -12,7 +12,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
"format": "prettier --plugin-search-dir . --write .",
"release": "yarn run build && changeset publish"
},
"exports": {
".": {
@@ -47,5 +48,8 @@
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module"
"type": "module",
"dependencies": {
"@changesets/cli": "^2.26.0"
}
}
+2 -2
View File
@@ -3,9 +3,9 @@ import type { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
webServer: {
command: 'npm run build && npm run preview',
port: 4173
port: 4173,
},
testDir: 'tests'
testDir: 'tests',
};
export default config;
+1 -1
View File
@@ -3,7 +3,7 @@ export type PlayerElement = HTMLAudioElement | undefined;
export function usePlayer<K extends keyof HTMLAudioElement>(
el: PlayerElement,
key: K,
value: HTMLAudioElement[K]
value: HTMLAudioElement[K],
) {
if (!el) return;
el[key] = value;
+2 -2
View File
@@ -8,8 +8,8 @@ const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter()
}
adapter: adapter(),
},
};
export default config;
+1 -1
View File
@@ -2,5 +2,5 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
plugins: [sveltekit()],
});
+1516 -10
View File
File diff suppressed because it is too large Load Diff