👷 add yarn build to ci (#1180)
This commit is contained in:
parent
1c1c1aa075
commit
4f79b9744d
|
|
@ -43,7 +43,7 @@
|
||||||
"prettier": "prettier --write ./src/**/*",
|
"prettier": "prettier --write ./src/**/*",
|
||||||
"docs:dev": "dumi dev",
|
"docs:dev": "dumi dev",
|
||||||
"docs:build": "dumi build",
|
"docs:build": "dumi build",
|
||||||
"ci": "yarn lint && yarn test",
|
"ci": "yarn lint && yarn build && yarn test",
|
||||||
"test": "cross-env NODE_ENV=test jest"
|
"test": "cross-env NODE_ENV=test jest"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
* @author Kuitos
|
* @author Kuitos
|
||||||
* @since 2019-04-11
|
* @since 2019-04-11
|
||||||
*/
|
*/
|
||||||
import type { ObjectType, SandBox } from '../../interfaces';
|
import type { SandBox } from '../../interfaces';
|
||||||
import { SandBoxType } from '../../interfaces';
|
import { SandBoxType } from '../../interfaces';
|
||||||
import { getTargetValue } from '../common';
|
import { getTargetValue } from '../common';
|
||||||
|
|
||||||
function isPropConfigurable(target: ObjectType, prop: PropertyKey) {
|
function isPropConfigurable(target: typeof window, prop: PropertyKey) {
|
||||||
const descriptor = Object.getOwnPropertyDescriptor(target, prop);
|
const descriptor = Object.getOwnPropertyDescriptor(target, prop);
|
||||||
return descriptor ? descriptor.configurable : true;
|
return descriptor ? descriptor.configurable : true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
* @author Hydrogen
|
* @author Hydrogen
|
||||||
* @since 2020-3-8
|
* @since 2020-3-8
|
||||||
*/
|
*/
|
||||||
import type { ObjectType, SandBox } from '../interfaces';
|
import type { SandBox } from '../interfaces';
|
||||||
import { SandBoxType } 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
|
// eslint-disable-next-line guard-for-in, no-restricted-syntax
|
||||||
for (const prop in obj) {
|
for (const prop in obj) {
|
||||||
if (obj.hasOwnProperty(prop)) {
|
if (obj.hasOwnProperty(prop)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user