Skip to content

Commit 5ef9fc7

Browse files
committed
Output build files to /dist directory
1 parent eb2660c commit 5ef9fc7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
dist

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "css-to-html",
33
"version": "1.0.0",
44
"description": "Generate HTML documents from CSS.",
5-
"main": "index.js",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"type": "module",
78
"scripts": {
89
"test": "echo \"Error: no test specified\" && exit 1"

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
"strict": true,
1010
"jsx": "preserve",
1111
"sourceMap": true,
12+
"declaration": true,
1213
"resolveJsonModule": true,
1314
"isolatedModules": true,
1415
"lib": ["ESNext", "DOM"],
15-
"skipLibCheck": true
16+
"skipLibCheck": true,
17+
"outDir": "dist"
1618
}
1719
}

0 commit comments

Comments
 (0)