Skip to content

Commit fe0f759

Browse files
committed
fix: changed package.json to match tsconfig build options. ran build
1 parent 5dd2c13 commit fe0f759

12 files changed

+178
-45
lines changed

lib/index.d.ts

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
declare const _default: {
2+
rules: {
3+
'no-aliased-imports': {
4+
meta: {
5+
type: string;
6+
fixable: string;
7+
hasSuggestions: boolean;
8+
schema: {
9+
type: string;
10+
properties: {
11+
aliases: {
12+
type: string;
13+
items: {
14+
type: string;
15+
properties: {
16+
prefix: {
17+
type: string;
18+
};
19+
target: {
20+
type: string;
21+
};
22+
};
23+
required: string[];
24+
};
25+
default: {
26+
prefix: string;
27+
target: string;
28+
}[];
29+
};
30+
includeFolders: {
31+
type: string;
32+
items: {
33+
type: string;
34+
};
35+
default: string[];
36+
};
37+
autoFix: {
38+
type: string;
39+
};
40+
};
41+
additionalProperties: boolean;
42+
}[];
43+
messages: {
44+
noAlias: string;
45+
noAliasNoAutofix: string;
46+
};
47+
};
48+
defaultOptions: {
49+
aliases: {
50+
prefix: string;
51+
target: string;
52+
}[];
53+
includeFolders: string[];
54+
autoFix: boolean;
55+
}[];
56+
create(context: any): {
57+
importDeclaration(node: any): void;
58+
};
59+
};
60+
};
61+
};
62+
export default _default;
63+
//# sourceMappingURL=index.d.ts.map

lib/index.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/rules/no-aliased-imports.d.ts

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,58 @@
1-
export {};
1+
export declare const noAliasedImportsInSrcRule: {
2+
meta: {
3+
type: string;
4+
fixable: string;
5+
hasSuggestions: boolean;
6+
schema: {
7+
type: string;
8+
properties: {
9+
aliases: {
10+
type: string;
11+
items: {
12+
type: string;
13+
properties: {
14+
prefix: {
15+
type: string;
16+
};
17+
target: {
18+
type: string;
19+
};
20+
};
21+
required: string[];
22+
};
23+
default: {
24+
prefix: string;
25+
target: string;
26+
}[];
27+
};
28+
includeFolders: {
29+
type: string;
30+
items: {
31+
type: string;
32+
};
33+
default: string[];
34+
};
35+
autoFix: {
36+
type: string;
37+
};
38+
};
39+
additionalProperties: boolean;
40+
}[];
41+
messages: {
42+
noAlias: string;
43+
noAliasNoAutofix: string;
44+
};
45+
};
46+
defaultOptions: {
47+
aliases: {
48+
prefix: string;
49+
target: string;
50+
}[];
51+
includeFolders: string[];
52+
autoFix: boolean;
53+
}[];
54+
create(context: any): {
55+
importDeclaration(node: any): void;
56+
};
57+
};
258
//# sourceMappingURL=no-aliased-imports.d.ts.map

lib/rules/no-aliased-imports.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/rules/no-aliased-imports.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/rules/no-aliased-imports.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,14 @@
99
"url": "https://github.com/MatrixAI/js-logger.git"
1010
},
1111
"type": "module",
12-
"main": "index.js",
12+
"main": "./lib/index.js",
13+
"types": "./lib/index.d.ts",
1314
"exports": {
14-
"./package.json": "./package.json",
15-
".": {
16-
"types": "./dist/index.d.ts",
17-
"import": "./dist/index.js"
18-
},
19-
"./*.js": {
20-
"types": "./dist/*.d.ts",
21-
"import": "./dist/*.js"
22-
},
23-
"./*": "./dist/*"
24-
},
25-
"imports": {
26-
"#*": "./dist/*"
15+
"import": "./lib/index.js",
16+
"require": "./lib/index.cjs",
17+
"types": "./lib/index.d.ts"
2718
},
19+
"./package.json": "./package.json",
2820
"scripts": {
2921
"prepare": "tsc -p ./tsconfig.build.json",
3022
"build": "shx rm -rf ./dist && tsc -p ./tsconfig.build.json",

0 commit comments

Comments
 (0)