Skip to content

Commit a343b6c

Browse files
committed
fixes
1 parent 5174a02 commit a343b6c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@
2727
"sveltejs"
2828
],
2929
"scripts": {
30-
"build": "pnpm run build:meta && pnpm run build:ts && pnpm run build:types",
30+
"build": "pnpm run build:meta && pnpm run build:ts",
3131
"build:meta": "pnpm run ts ./tools/update-meta.ts",
3232
"build:ts": "tsc --project ./tsconfig.build.json",
33-
"build:types": "pnpm run ts ./tools/update-rule-types.ts",
3433
"clean": "rimraf .nyc_output lib coverage build .svelte-kit svelte.config-dist.js",
3534
"cover": "nyc --reporter=lcov pnpm run test",
3635
"debug": "pnpm run mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './rule-types.d.ts';
1+
import './rule-types';
22
import type { RuleModule } from './types';
33
import { rules as ruleList } from './utils/rules';
44
import base from './configs/base';
File renamed without changes.

tools/update-rule-types.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs'
1+
import fs from 'fs';
22
import path from 'path';
33
import plugin from '../src/index';
44

@@ -11,8 +11,8 @@ async function main() {
1111
const ruleTypes = await pluginsToRulesDTS({ svelte: plugin });
1212

1313
void fs.writeFileSync(
14-
path.join(__dirname, '../src/rule-types.d.ts'),
15-
`// IMPORTANT!
14+
path.join(__dirname, '../src/rule-types.ts'),
15+
`// IMPORTANT!
1616
// This file has been automatically generated,
1717
// in order to update its content execute "pnpm run update"
1818

0 commit comments

Comments
 (0)