Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Set up for npm packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBastin committed Jul 3, 2021
1 parent d02308d commit fd71c1a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
coverage
.husky
.husky/
dist
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
"name": "hopp-js-sandbox",
"version": "0.1.0",
"description": "",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"demo": "esrun src/index.ts",
"lint": "eslint --ext .ts,.js --ignore-path .gitignore",
"prepare": "husky install",
"test": "npx jest"
"test": "npx jest",
"build": "npx tsc",
"clean": "npx tsc --build --clean",
"prepublish": "npm run build"
},
"keywords": [],
"author": "",
Expand Down
19 changes: 10 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"compilerOptions": {
"target": "ES2018",
"target": "ES6",
"module": "ESNext",
"moduleResolution": "Node",
"lib": ["ESNext", "ESNext.AsyncIterable", "DOM"],
"esModuleInterop": true,
"allowJs": true,
"sourceMap": true,
"strict": true,
"noEmit": true,
"baseUrl": ".",
"baseUrl": "./src",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"]
"~/*": ["./src/*"],
"@/*": ["./src/*"]
},
"types": [
"@types/node",
"@types/jest"
]
],
"outDir": "./dist/",
"rootDir": "./src/",
"declaration": true,
},
"exclude": ["node_modules"]
"include": ["./src"],
"exclude": ["node_modules", "./src/__tests__"]
}

0 comments on commit fd71c1a

Please sign in to comment.