👷 add yarn build to ci (#1180)

This commit is contained in:
Kuitos 2020-12-24 15:21:58 +08:00 committed by GitHub
parent 1c1c1aa075
commit 4f79b9744d
3 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@
"prettier": "prettier --write ./src/**/*",
"docs:dev": "dumi dev",
"docs:build": "dumi build",
"ci": "yarn lint && yarn test",
"ci": "yarn lint && yarn build && yarn test",
"test": "cross-env NODE_ENV=test jest"
},
"repository": {

View File

@ -2,11 +2,11 @@
* @author Kuitos
* @since 2019-04-11
*/
import type { ObjectType, SandBox } from '../../interfaces';
import type { SandBox } from '../../interfaces';
import { SandBoxType } from '../../interfaces';
import { getTargetValue } from '../common';
function isPropConfigurable(target: ObjectType, prop: PropertyKey) {
function isPropConfigurable(target: typeof window, prop: PropertyKey) {
const descriptor = Object.getOwnPropertyDescriptor(target, prop);
return descriptor ? descriptor.configurable : true;
}

View File

@ -2,10 +2,10 @@
* @author Hydrogen
* @since 2020-3-8
*/
import type { ObjectType, SandBox } from '../interfaces';
import type { SandBox } from '../interfaces';
import { SandBoxType } from '../interfaces';
function iter(obj: ObjectType, callbackFn: (prop: any) => void) {
function iter(obj: typeof window, callbackFn: (prop: any) => void) {
// eslint-disable-next-line guard-for-in, no-restricted-syntax
for (const prop in obj) {
if (obj.hasOwnProperty(prop)) {