Skip to content

Commit 45d77f6

Browse files
committed
fix: fix npm main entry and type declarations
1 parent 5b2004b commit 45d77f6

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// TODO: Programmatic API
2+
3+
export { default as VueTransformation } from './src/VueTransformation'
4+
5+
export { default as runTransformation } from './src/run-transformation'
6+
7+
export { default as transformations } from './transformations'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue-codemod",
33
"version": "0.0.2",
44
"description": "Vue codemod scripts",
5-
"main": "index.js",
5+
"main": "dist/index.js",
66
"bin": "./dist/bin/vue-codemod.js",
77
"files": [
88
"dist",

src/index.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"outDir": "dist",
5+
"declaration": true,
56
"sourceMap": false,
67
"target": "ES2019",
78
"module": "commonjs",

0 commit comments

Comments
 (0)