Skip to content

Commit

Permalink
✨ Add release:yalc npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed May 18, 2021
1 parent a6f871e commit 8e961cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"type-check": "tsc --noEmit",
"type-check:watch": "yarn type-check -- --watch",
"test": "jest",
"rebuild": "yarn build && yalc push",
"start": "yarn build && onchange 'packages/@ackee/*/src/**/*.ts' -- yarn rebuild",
"start": "yarn build && onchange 'packages/@ackee/*/src/**/*.ts' -- yarn release:yalc",
"changelog": "gitmoji-changelog",
"format": "prettier --config ./prettier.config.js --write 'packages/@ackee/*/src/**/*.ts' '*.{js,json}' --loglevel warn",
"release": "lerna publish --no-push",
"release:beta": "yarn release --dist-tag beta --no-push",
"prepare": "yarn build"
"prepare": "yarn build",
"release:yalc": "yarn prepare && lerna exec -- yalc push --no-scripts"
},
"devDependencies": {
"@ackee/browserslist-config": "^1.0.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/@ackee/antonio-core/src/modules/core/request.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { RequestMethod, RequestConfig, GeneralConfig, RequestResult, ResolverType } from '../../types';
import type { RequestReturnType } from '../../types';

import { interceptors } from './models/InterceptorManager';
import type { RequestInterceptorsEntries, ResponseInterceptorsEntries } from './models/InterceptorManager';
Expand Down Expand Up @@ -158,7 +159,7 @@ export default function requestTypeResolver(
body: BodyInit | undefined,
requestConfig: RequestConfig | undefined,
antonio: TAntonio,
) {
): RequestReturnType {
const generalConfig: GeneralConfig = generalConfigs.get(antonio);
const it = request(method, requestUrl, body, requestConfig, antonio, generalConfig);

Expand Down
4 changes: 1 addition & 3 deletions packages/@ackee/antonio-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,4 @@ export interface RequestResult {
config: {};
}

export type GeneratorRequestResult = Generator<any, RequestResult>;
export type PromiseRequestResult = Promise<RequestResult>;
export type RequestReturnType = GeneratorRequestResult | PromiseRequestResult;
export type RequestReturnType = Generator<any, RequestResult> | Promise<RequestResult>;

0 comments on commit 8e961cf

Please sign in to comment.