|
4 | 4 | "private": false, |
5 | 5 | "description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js", |
6 | 6 | "author": "Dipak Sarkar <hello@dipaksarkar.in> (https://dipaksarkar.in/)", |
7 | | - "main": "dist/index.cjs.js", |
8 | | - "module": "dist/index.esm.js", |
9 | | - "unpkg": "dist/index.min.js", |
10 | | - "style": "dist/styles.css", |
11 | | - "licence": "MIT", |
| 7 | + "license": "MIT", |
| 8 | + "module": "./dist/index.mjs", |
| 9 | + "main": "./dist/index.cjs", |
| 10 | + "types": "./dist/index.d.ts", |
12 | 11 | "files": [ |
13 | | - "dist/*", |
14 | | - "src/**/*.vue" |
| 12 | + "dist" |
15 | 13 | ], |
| 14 | + "exports": { |
| 15 | + ".": { |
| 16 | + "import": "./dist/index.mjs", |
| 17 | + "require": "./dist/index.cjs", |
| 18 | + "types": "./dist/index.d.ts" |
| 19 | + } |
| 20 | + }, |
| 21 | + "sideeffects": false, |
16 | 22 | "scripts": { |
17 | | - "build": "rollup --c rollup.config.js", |
| 23 | + "build": "tsc --emitDeclarationOnly --skipLibCheck --declaration --outDir .temp/types && rollup --c rollup.config.js", |
18 | 24 | "docs:build": "vuepress build docs", |
19 | 25 | "docs:dev": "vuepress dev docs", |
20 | 26 | "test": "jest tests/*", |
21 | 27 | "lint": "eslint 'src/**/*.{js,vue}'", |
22 | 28 | "push": "clear && git config core.ignorecase false && branch=\"$(git symbolic-ref -q HEAD)\" || \"dev\" && branch=${branch##refs/heads/} && branch=${branch:-HEAD} && echo Pushing to Branch \"$branch\" && echo Please type your commit message && read msg && clear && git add . && git commit -m \"$msg\" && git push origin \"$branch\"" |
23 | 29 | }, |
24 | 30 | "devDependencies": { |
25 | | - "@babel/core": "^7.9.0", |
26 | | - "@babel/preset-env": "^7.9.5", |
27 | | - "@vue/cli-plugin-unit-jest": "^4.5.13", |
28 | | - "@vue/cli-service": "^4.5.13", |
29 | | - "@vue/test-utils": "^1.2.2", |
30 | | - "@vuedoc/md": "^1.6.0", |
31 | | - "@vuepress/plugin-back-to-top": "^1.8.2", |
32 | | - "@vuepress/plugin-google-analytics": "^1.8.2", |
33 | | - "@vuepress/plugin-medium-zoom": "^1.8.2", |
34 | | - "@vuepress/plugin-register-components": "^1.4.1", |
35 | | - "babel-core": "^6.26.3", |
36 | | - "babel-jest": "^25.3.0", |
37 | | - "babel-preset-env": "^1.7.0", |
38 | | - "babel-preset-vue": "^2.0.2", |
39 | | - "eslint": "^6.8.0", |
40 | | - "eslint-config-airbnb-base": "^14.1.0", |
41 | | - "eslint-plugin-import": "^2.20.2", |
42 | | - "eslint-plugin-vue": "^6.2.2", |
43 | | - "jest": "^25.3.0", |
44 | | - "node-fetch": "^2.6.0", |
45 | | - "npm-run-all": "^4.1.5", |
46 | | - "postcss": "6.0", |
47 | | - "quasar": "^1.11.3", |
| 31 | + "@rollup/plugin-commonjs": "^24.0.1", |
| 32 | + "@rollup/plugin-node-resolve": "^15.0.1", |
| 33 | + "@vue/eslint-config-typescript": "^11.0.2", |
| 34 | + "@vue/test-utils": "^2.2.10", |
| 35 | + "eslint": "^8.34.0", |
| 36 | + "eslint-plugin-vue": "^9.9.0", |
| 37 | + "jest": "^29.4.2", |
| 38 | + "lint-staged": "^13.1.1", |
48 | 39 | "rollup": "^2.6.1", |
49 | | - "rollup-plugin-buble": "^0.19.8", |
50 | 40 | "rollup-plugin-commonjs": "^10.1.0", |
51 | | - "rollup-plugin-css-only": "^2.0.0", |
52 | | - "rollup-plugin-filesize": "^9.1.1", |
| 41 | + "rollup-plugin-dts": "^5.1.1", |
| 42 | + "rollup-plugin-filesize": "^9.1.2", |
53 | 43 | "rollup-plugin-node-resolve": "^5.2.0", |
54 | | - "rollup-plugin-replace": "^2.2.0", |
55 | | - "rollup-plugin-terser": "^5.3.0", |
56 | | - "rollup-plugin-vue": "^5.1.6", |
57 | | - "vue": "^2.6.11", |
58 | | - "vue-jest": "^3.0.5", |
59 | | - "vue-template-compiler": "^2.6.11", |
60 | | - "vuepress": "^1.8.2", |
61 | | - "vuepress-plugin-demo-code": "^0.5.0" |
| 44 | + "rollup-plugin-typescript2": "^0.34.1", |
| 45 | + "typescript": "^4.9.5", |
| 46 | + "vue": "2.6.0" |
62 | 47 | }, |
63 | 48 | "bugs": { |
64 | 49 | "url": "https://github.com/coders-tm/vue-number-format/issues" |
|
76 | 61 | "currency input", |
77 | 62 | "money input" |
78 | 63 | ], |
79 | | - "license": "MIT", |
80 | 64 | "repository": { |
81 | 65 | "type": "git", |
82 | 66 | "url": "https://github.com/coders-tm/vue-number-format.git" |
83 | 67 | }, |
84 | 68 | "publishConfig": { |
85 | 69 | "@coders-tm:registry": "https://npm.pkg.github.com" |
| 70 | + }, |
| 71 | + "simple-git-hooks": { |
| 72 | + "pre-commit": "npx lint-staged" |
| 73 | + }, |
| 74 | + "lint-staged": { |
| 75 | + "{**/*,*}.{js,ts,vue}": [ |
| 76 | + "eslint --fix" |
| 77 | + ] |
86 | 78 | } |
87 | 79 | } |
0 commit comments