@xylabs/ts-scripts-yarn3 2.12.8 → 2.12.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsconfig.build.cjs.tsbuildinfo +1 -1
- package/dist/.tsconfig.build.esm.tsbuildinfo +1 -1
- package/dist/cjs/actions/build.js +1 -1
- package/dist/cjs/actions/build.js.map +1 -1
- package/dist/cjs/actions/deploy-major.js +4 -4
- package/dist/cjs/actions/deploy-major.js.map +1 -1
- package/dist/cjs/actions/deploy-minor.js +4 -4
- package/dist/cjs/actions/deploy-minor.js.map +1 -1
- package/dist/cjs/actions/deploy-next.js +4 -4
- package/dist/cjs/actions/deploy-next.js.map +1 -1
- package/dist/cjs/actions/deploy.js +4 -4
- package/dist/cjs/actions/deploy.js.map +1 -1
- package/dist/cjs/actions/index.d.ts +1 -2
- package/dist/cjs/actions/index.d.ts.map +1 -1
- package/dist/cjs/actions/index.js +1 -2
- package/dist/cjs/actions/index.js.map +1 -1
- package/dist/cjs/actions/lint-clean.d.ts.map +1 -1
- package/dist/cjs/actions/lint-clean.js +18 -4
- package/dist/cjs/actions/lint-clean.js.map +1 -1
- package/dist/cjs/actions/lint.d.ts +2 -0
- package/dist/cjs/actions/lint.d.ts.map +1 -0
- package/dist/cjs/actions/lint.js +9 -0
- package/dist/cjs/actions/lint.js.map +1 -0
- package/dist/cjs/actions/rebuild.js +2 -2
- package/dist/cjs/actions/rebuild.js.map +1 -1
- package/dist/cjs/actions/relint.d.ts.map +1 -1
- package/dist/cjs/actions/relint.js +18 -1
- package/dist/cjs/actions/relint.js.map +1 -1
- package/dist/cjs/lib/xy/xyLintCommands.js +1 -1
- package/dist/cjs/lib/xy/xyLintCommands.js.map +1 -1
- package/dist/esm/actions/build.js +1 -1
- package/dist/esm/actions/build.js.map +1 -1
- package/dist/esm/actions/deploy-major.js +4 -4
- package/dist/esm/actions/deploy-major.js.map +1 -1
- package/dist/esm/actions/deploy-minor.js +4 -4
- package/dist/esm/actions/deploy-minor.js.map +1 -1
- package/dist/esm/actions/deploy-next.js +4 -4
- package/dist/esm/actions/deploy-next.js.map +1 -1
- package/dist/esm/actions/deploy.js +4 -4
- package/dist/esm/actions/deploy.js.map +1 -1
- package/dist/esm/actions/index.d.ts +1 -2
- package/dist/esm/actions/index.d.ts.map +1 -1
- package/dist/esm/actions/index.js +1 -2
- package/dist/esm/actions/index.js.map +1 -1
- package/dist/esm/actions/lint-clean.d.ts.map +1 -1
- package/dist/esm/actions/lint-clean.js +19 -5
- package/dist/esm/actions/lint-clean.js.map +1 -1
- package/dist/esm/actions/lint.d.ts +2 -0
- package/dist/esm/actions/lint.d.ts.map +1 -0
- package/dist/esm/actions/lint.js +5 -0
- package/dist/esm/actions/lint.js.map +1 -0
- package/dist/esm/actions/rebuild.js +2 -2
- package/dist/esm/actions/rebuild.js.map +1 -1
- package/dist/esm/actions/relint.d.ts.map +1 -1
- package/dist/esm/actions/relint.js +19 -2
- package/dist/esm/actions/relint.js.map +1 -1
- package/dist/esm/lib/xy/xyLintCommands.js +2 -2
- package/dist/esm/lib/xy/xyLintCommands.js.map +1 -1
- package/dist/tsconfig.build.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.build.esm.tsbuildinfo +1 -1
- package/package.json +4 -7
- package/src/actions/build.ts +1 -1
- package/src/actions/deploy-major.ts +4 -4
- package/src/actions/deploy-minor.ts +4 -4
- package/src/actions/deploy-next.ts +4 -4
- package/src/actions/deploy.ts +4 -4
- package/src/actions/index.ts +1 -2
- package/src/actions/lint-clean.ts +18 -5
- package/src/actions/{lint-slow.ts → lint.ts} +0 -0
- package/src/actions/rebuild.ts +2 -2
- package/src/actions/relint.ts +19 -2
- package/src/lib/xy/xyLintCommands.ts +2 -2
- package/src/actions/lint-fast.ts +0 -9
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rmSync } from 'fs'
|
|
2
2
|
|
|
3
|
-
import { runSteps } from '../lib'
|
|
3
|
+
import { runSteps, yarnWorkspaces } from '../lib'
|
|
4
4
|
|
|
5
5
|
export const lintClean = () => {
|
|
6
|
-
console.log('Clean [.eslintcache]')
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
console.log('Lint Clean [.eslintcache]')
|
|
7
|
+
const workspaces = yarnWorkspaces()
|
|
8
|
+
const result = workspaces
|
|
9
|
+
.map(({ location, name }) => {
|
|
10
|
+
const dist = `${location}/.eslintcache`
|
|
11
|
+
try {
|
|
12
|
+
rmSync(dist, { force: true, recursive: true })
|
|
13
|
+
return 0
|
|
14
|
+
} catch (ex) {
|
|
15
|
+
const error = ex as Error
|
|
16
|
+
console.error(`Lint Clean [.eslintcache] Failed [${name}, ${error.message}]`)
|
|
17
|
+
return 1
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
.reduce((prev, result) => prev || result, 0)
|
|
21
|
+
return result || runSteps('Lint [Clean]', [['yarn', ['eslint', '.', '--cache']]])
|
|
9
22
|
}
|
|
File without changes
|
package/src/actions/rebuild.ts
CHANGED
|
@@ -7,8 +7,8 @@ export interface RebuildParams {
|
|
|
7
7
|
|
|
8
8
|
export const rebuild = ({ target }: RebuildParams) => {
|
|
9
9
|
return runSteps('Rebuild', [
|
|
10
|
-
['yarn', 'clean'],
|
|
10
|
+
['yarn', 'xy clean'],
|
|
11
11
|
['yarn', target ? `xy compile -t ${target}` : 'xy compile'],
|
|
12
|
-
['yarn', 'lint'],
|
|
12
|
+
['yarn', 'xy lint'],
|
|
13
13
|
])
|
|
14
14
|
}
|
package/src/actions/relint.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rmSync } from 'fs'
|
|
2
|
+
|
|
3
|
+
import { runSteps, yarnWorkspaces } from '../lib'
|
|
2
4
|
|
|
3
5
|
export const relint = () => {
|
|
4
|
-
|
|
6
|
+
console.log('Relint - Cleaning [.eslintcache]')
|
|
7
|
+
const workspaces = yarnWorkspaces()
|
|
8
|
+
const result = workspaces
|
|
9
|
+
.map(({ location, name }) => {
|
|
10
|
+
const dist = `${location}/.eslintcache`
|
|
11
|
+
try {
|
|
12
|
+
rmSync(dist, { force: true, recursive: true })
|
|
13
|
+
return 0
|
|
14
|
+
} catch (ex) {
|
|
15
|
+
const error = ex as Error
|
|
16
|
+
console.error(`Relint - Cleaning [.eslintcache] Failed [${name}, ${error.message}]`)
|
|
17
|
+
return 1
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
.reduce((prev, result) => prev || result, 0)
|
|
21
|
+
return result || runSteps('Relint', [['yarn', ['eslint', '.', '--cache']]])
|
|
5
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import yargs from 'yargs'
|
|
2
2
|
|
|
3
|
-
import { cycle, fix, lint,
|
|
3
|
+
import { cycle, fix, lint, lintProfile, relint, sonar } from '../../actions'
|
|
4
4
|
|
|
5
5
|
export const xyLintCommands = (args: yargs.Argv) => {
|
|
6
6
|
return args
|
|
@@ -27,7 +27,7 @@ export const xyLintCommands = (args: yargs.Argv) => {
|
|
|
27
27
|
},
|
|
28
28
|
(argv) => {
|
|
29
29
|
if (argv.verbose) console.info('Lint')
|
|
30
|
-
process.exitCode = argv.fix ? fix() : argv.profile ? lintProfile() :
|
|
30
|
+
process.exitCode = argv.fix ? fix() : argv.profile ? lintProfile() : lint()
|
|
31
31
|
},
|
|
32
32
|
)
|
|
33
33
|
.command(
|
package/src/actions/lint-fast.ts
DELETED