mirror of
https://github.com/versia-pub/api.git
synced 2025-12-07 00:48:19 +01:00
feat(build): 👷 Don't minify/bundle/compile packages in release
This commit is contained in:
parent
c54558abdf
commit
4542750159
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
|
|
@ -45,8 +45,9 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
# Code is not minified and bundled anymore
|
||||||
run: bun run build
|
#- name: Build
|
||||||
|
# run: bun run build
|
||||||
|
|
||||||
- name: Change version in package.json to ${{ github.event.inputs.version }}, defaulting to the truncated commit hash
|
- name: Change version in package.json to ${{ github.event.inputs.version }}, defaulting to the truncated commit hash
|
||||||
run: 'sed -i ''s/"version": ".*"/"version": "${{ github.event.inputs.version }}"/'' package.json ${{ github.event.inputs.package }}/package.json ${{ github.event.inputs.package }}/jsr.jsonc'
|
run: 'sed -i ''s/"version": ".*"/"version": "${{ github.event.inputs.version }}"/'' package.json ${{ github.event.inputs.package }}/package.json ${{ github.event.inputs.package }}/jsr.jsonc'
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ type ConvertibleObject = {
|
||||||
| ConvertibleObject;
|
| ConvertibleObject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Output of a request. Contains the data and headers.
|
||||||
|
* @template ReturnType The type of the data returned by the request.
|
||||||
|
*/
|
||||||
export interface Output<ReturnType> {
|
export interface Output<ReturnType> {
|
||||||
data: ReturnType;
|
data: ReturnType;
|
||||||
headers: Headers;
|
headers: Headers;
|
||||||
|
|
@ -50,6 +54,12 @@ const objectToFormData = (obj: ConvertibleObject): FormData => {
|
||||||
}, new FormData());
|
}, new FormData());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wrapper around Error, useful for detecting if an error
|
||||||
|
* is due to a failed request.
|
||||||
|
*
|
||||||
|
* Throws if the request returns invalid or unexpected data.
|
||||||
|
*/
|
||||||
export class ResponseError extends Error {}
|
export class ResponseError extends Error {}
|
||||||
|
|
||||||
export class BaseClient {
|
export class BaseClient {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
/**
|
||||||
|
* Mastodon API Access Token
|
||||||
|
*/
|
||||||
export type Token = {
|
export type Token = {
|
||||||
access_token: string;
|
access_token: string;
|
||||||
token_type: string;
|
token_type: string;
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,8 @@
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./dist/index.js",
|
"import": "./index.ts",
|
||||||
"default": "./dist/index.js",
|
"default": "./index.ts"
|
||||||
"types": "./dist/index.d.ts"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue