Skip to content

Commit 81fbe98

Browse files
committed
fix: change output and declaration dirs
1 parent 8dc8d85 commit 81fbe98

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"library",
99
"typescript"
1010
],
11-
"main": "dist/lib/create-ts-lib-gh.js",
12-
"typings": "dist/types/create-ts-lib-gh.d.ts",
11+
"main": "dist/create-ts-lib-gh.js",
12+
"typings": "dist/@types/create-ts-lib-gh.d.ts",
1313
"files": [
1414
"dist",
1515
"template"

template/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"keywords": [
66
<%- library.keywords.map((k) => `"${str(k)}"`).join(",\n ") %>
77
],
8-
"main": "dist/lib/<%= str(library.name) %>.js",
9-
"typings": "dist/types/<%= str(library.name) %>.d.ts",
8+
"main": "dist/<%= str(library.name) %>.js",
9+
"typings": "dist/@types/<%= str(library.name) %>.d.ts",
1010
"files": [
1111
"dist"
1212
],

template/tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"exclude": [
44
"node_modules",
55
"dist",
6-
"**/*spec.ts"
6+
"**/*.spec.ts"
77
]
88
}

template/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"experimentalDecorators": true,
1212
"emitDecoratorMetadata": true,
1313
"skipLibCheck": true,
14-
"declarationDir": "dist/types",
15-
"outDir": "dist/lib",
14+
"declarationDir": "dist/@types",
15+
"outDir": "dist",
1616
"typeRoots": [
1717
"node_modules/@types"
1818
]

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"exclude": [
44
"node_modules",
55
"dist",
6-
"**/*spec.ts"
6+
"**/*.spec.ts"
77
]
88
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"experimentalDecorators": true,
1515
"emitDecoratorMetadata": true,
1616
"skipLibCheck": true,
17-
"declarationDir": "dist/types",
18-
"outDir": "dist/lib",
17+
"declarationDir": "dist/@types",
18+
"outDir": "dist",
1919
"esModuleInterop": true,
2020
"typeRoots": [
2121
"node_modules/@types",

0 commit comments

Comments
 (0)