diff --git a/.gitignore b/.gitignore index 5fe8a83..398fa0f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules .cache .next storybook-static +dist \ No newline at end of file diff --git a/.npmignore b/.npmignore index 9d61834..e75ed19 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,7 @@ +src +.github node_modules .cache -.next \ No newline at end of file +.next +.storybook +tsconfig.json \ No newline at end of file diff --git a/package.json b/package.json index d806c85..5b699ad 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,11 @@ { "name": "@acmucsd/components", - "version": "1.0.6", + "version": "1.0.7", "description": "Component library for ACMUCSD websites.", - "main": "index.js", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { + "build": "tsc", "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build" diff --git a/tsconfig.json b/tsconfig.json index 9c89146..8c879e7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,7 @@ "allowUnreachableCode": false, "noFallthroughCasesInSwitch": true, "target": "es5", - "outDir": "out", + "outDir": "dist", "declaration": true, "sourceMap": true, "esModuleInterop": true, @@ -31,10 +31,8 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "jsx": "preserve", - "noEmit": true, "isolatedModules": true, "incremental": true, - "baseUrl": ".", "paths": { "@/public/*": [ "./public/*"