We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
package.json
1 parent 273cea2 commit 3b766d1Copy full SHA for 3b766d1
lib/index.ts
@@ -1,11 +1,13 @@
1
-import {
2
- name as packageName,
3
- version as packageVersion,
4
-} from '../package.json';
5
-
6
import configs from './configs';
7
import rules from './rules';
8
+// we can't natively import package.json as tsc will copy it into dist/
+const {
+ name: packageName,
+ version: packageVersion,
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
9
+} = require('../package.json') as { name: string; version: string };
10
+
11
export = {
12
meta: {
13
name: packageName,
0 commit comments