Skip to content

Commit 0112336

Browse files
author
Gerard Delmàs
committed
emit declarations
1 parent 159c880 commit 0112336

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

index.js

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "typed-css-modules",
33
"version": "0.4.2",
44
"description": "Creates .d.ts files from CSS Modules .css files",
5-
"main": "index.js",
5+
"main": "lib/index.js",
6+
"types": "lib/index.d.ts",
67
"scripts": {
78
"build": "tsc && chmod +x lib/cli.js",
89
"test": "jest",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { DtsCreator } from './dtsCreator';
2+
export = DtsCreator;

tsconfig.json

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

0 commit comments

Comments
 (0)