Skip to content

Commit

Permalink
Fix new eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Oct 4, 2023
1 parent 79ab091 commit a8a552b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/src/sync-process/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class SyncProcess {
/** Closes down the worker thread and the stdin stream. */
private close(): void {
this.port.close();
this.worker.terminate();
void this.worker.terminate();
this.stdin.destroy();
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"check:gts": "gts check",
"check:tsc": "tsc --noEmit",
"clean": "gts clean",
"compile": "tsc && cp lib/index.mjs dist/lib/index.mjs && cp -r lib/src/vendor/sass/ dist/lib/src/vendor/sass && cp dist/lib/src/vendor/sass/index.d.ts dist/lib/src/vendor/sass/index.m.d.ts",
"compile": "tsc -p tsconfig.build.json && cp lib/index.mjs dist/lib/index.mjs && cp -r lib/src/vendor/sass/ dist/lib/src/vendor/sass && cp dist/lib/src/vendor/sass/index.d.ts dist/lib/src/vendor/sass/index.m.d.ts",
"fix": "gts fix",
"prepublishOnly": "npm run clean && ts-node ./tool/prepare-release.ts",
"test": "jest"
Expand Down
2 changes: 1 addition & 1 deletion tool/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const argv = yargs(process.argv.slice(2))
})
.parseSync();

(async () => {
void (async () => {
try {
const outPath = 'lib/src/vendor';

Expand Down
2 changes: 1 addition & 1 deletion tool/prepare-optional-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function downloadRelease(options: {
await fs.unlink(zippedAssetPath);
}

(async () => {
void (async () => {
try {
const version = pkg['compiler-version'] as string;
if (version.endsWith('-dev')) {
Expand Down
2 changes: 1 addition & 1 deletion tool/prepare-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as shell from 'shelljs';
import * as pkg from '../package.json';
import {getLanguageRepo} from './get-language-repo';

(async () => {
void (async () => {
try {
await sanityCheckBeforeRelease();

Expand Down
2 changes: 1 addition & 1 deletion tool/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function fetchRepo(options: {
ref: string;
}): void {
const path = p.join(options.outPath, options.repo);
if (lstatSync(path).isSymbolicLink() && existsSync(p.join(path, '.git'))) {
if (existsSync(p.join(path, '.git')) && lstatSync(path).isSymbolicLink()) {
throw (
`${path} is a symlink to a git repo, not overwriting.\n` +
`Run "rm ${path}" and try again.`
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"exclude": [
"lib/src/vendor/dart-sass/**",
"**/*.test.ts"
]
}
9 changes: 4 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
"lib": ["DOM"]
},
"include": [
"*.ts",
"lib/**/*.ts",
"tool/*.ts"
"tool/**/*.ts",
"test/**/*.ts"
],
"exclude": [
"**/*.test.ts",
"lib/src/vendor/dart-sass/**"
]
"exclude": ["lib/src/vendor/dart-sass/**"]
}

0 comments on commit a8a552b

Please sign in to comment.