diff --git a/.gitignore b/.gitignore index 3e2e84b..1eae0cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -build/ +dist/ node_modules/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 diff --git a/demo/index.html b/demo/index.html index 615158d..dc016c2 100644 --- a/demo/index.html +++ b/demo/index.html @@ -82,4 +82,4 @@ - + diff --git a/package.json b/package.json index 2bc7f73..a715964 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { - "name": "hyperpop", - "version": "0.0.0", + "name": "@suttyweb/hyperpop", + "version": "0.1.0", "description": "Un cliente de API de https://github.com/TangoSoftware/ApiTiendas", - "main": "index.js", + "license": "SEE LICENSE IN LICENSE", "scripts": { "build": "tsc", + "prepublish": "tsc", "watch-build": "tsc --watch", "format": "prettier --write .", "check-format": "prettier --check .", @@ -19,7 +20,8 @@ "api" ], "author": "Sutty ", - "license": "SEE LICENSE IN LICENSE", + "main": "dist/index.js", + "types": "dist/index.d.ts", "devDependencies": { "prettier": "^2.4.1", "typescript": "^4.4.3" diff --git a/tsconfig.json b/tsconfig.json index ce974a8..d9d4619 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "module": "es6", "moduleResolution": "node", - "outDir": "./build", + "outDir": "./dist", "allowJs": false, @@ -15,6 +15,8 @@ "strict": true, + "declaration": true, + "skipLibCheck": true } }