mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-22 03:17:57 +00:00
Initial rebrand: @polkadot -> @pezkuwi (3 packages)
- Package namespace: @polkadot/dev -> @pezkuwi/dev - Repository: polkadot-js/dev -> pezkuwichain/pezkuwi-dev - Author: Pezkuwi Team <team@pezkuwichain.io> Packages: - @pezkuwi/dev (build tools, linting, CI scripts) - @pezkuwi/dev-test (test runner) - @pezkuwi/dev-ts (TypeScript build) Upstream: polkadot-js/dev v0.83.3
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env node
|
||||
// Copyright 2017-2025 @polkadot/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import process from 'node:process';
|
||||
import yargs from 'yargs';
|
||||
|
||||
import { __dirname, execPm, GITHUB_REPO, logBin } from './util.mjs';
|
||||
|
||||
const TS_CONFIG_BUILD = true;
|
||||
|
||||
logBin('polkadot-dev-run-lint');
|
||||
|
||||
// Since yargs can also be a promise, we just relax the type here completely
|
||||
const argv = await yargs(process.argv.slice(2))
|
||||
.options({
|
||||
'skip-eslint': {
|
||||
description: 'Skips running eslint',
|
||||
type: 'boolean'
|
||||
},
|
||||
'skip-tsc': {
|
||||
description: 'Skips running tsc',
|
||||
type: 'boolean'
|
||||
}
|
||||
})
|
||||
.strict()
|
||||
.argv;
|
||||
|
||||
if (!argv['skip-eslint']) {
|
||||
// We don't want to run with fix on CI
|
||||
const extra = GITHUB_REPO
|
||||
? ''
|
||||
: '--fix';
|
||||
|
||||
execPm(`polkadot-exec-eslint ${extra} ${process.cwd()}`);
|
||||
}
|
||||
|
||||
if (!argv['skip-tsc']) {
|
||||
execPm(`polkadot-exec-tsc --noEmit --emitDeclarationOnly false --pretty${TS_CONFIG_BUILD ? ' --project tsconfig.build.json' : ''}`);
|
||||
}
|
||||
Reference in New Issue
Block a user