Skip to content

Commit 34af056

Browse files
committed
fix: πŸ› even more type fixes
1 parent b22b59d commit 34af056

File tree

7 files changed

+11
-17
lines changed

7 files changed

+11
-17
lines changed

Diff for: β€Žpackage.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
],
2626
"scripts": {
2727
"prebuild": "rm -rf dist/ && npm run lint",
28-
"build": "tsc",
29-
"dev": "tsc -w",
28+
"build": "tsc --build tsconfig.build.json",
29+
"dev": "npm run build -- -w",
3030
"test": "jest",
3131
"test:watch": "jest --watchAll",
3232
"test:ci": "jest --silent --no-cache",

Diff for: β€Žsrc/autoProcess.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ type AutoPreprocessOptions = {
5151

5252
// workaround while we don't have this
5353
// https://github.com/microsoft/TypeScript/issues/17867
54-
[languageName: string]:
55-
| string
56-
| Promise<string>
57-
| Array<[string, string]>
58-
| string[]
59-
| TransformerOptions;
54+
[languageName: string]: TransformerOptions;
6055
};
6156

6257
const ALIAS_OPTION_OVERRIDES: Record<string, any> = {

Diff for: β€Žsrc/types/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type Coffeescript = {
1414
} & ContentModifier;
1515

1616
export type Postcss = postcss.ProcessOptions & {
17-
plugins: postcss.AcceptedPlugin[];
17+
plugins?: postcss.AcceptedPlugin[];
1818
// custom
1919
configFilePath?: string;
2020
} & ContentModifier;

Diff for: β€Žtest/autoProcess/autoProcess.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('options', () => {
5757
autoPreprocess({
5858
scss: {
5959
sourceMap: false,
60-
includedPaths: ['node_modules'],
60+
includePaths: ['node_modules'],
6161
},
6262
}),
6363
);

Diff for: β€Žtsconfig.build.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src/**/*.ts"]
4+
}

Diff for: β€Žtsconfig.eslint.json

-5
This file was deleted.

Diff for: β€Žtsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"noImplicitAny": true,
3+
"noImplicitAny": false,
44
"sourceMap": false,
55
"module": "commonjs",
66
"moduleResolution": "node",
@@ -11,6 +11,6 @@
1111
"types": ["jest", "node"],
1212
"outDir": "dist"
1313
},
14-
"include": ["src/**/*.ts"],
14+
"include": ["**/*.ts"],
1515
"exclude": ["node_modules/**/*", "dist"]
1616
}

0 commit comments

Comments
Β (0)