Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit cba8ced

Browse files
committed
build: use tsc instead of rollup
1 parent e4b17cd commit cba8ced

File tree

3 files changed

+64
-35
lines changed

3 files changed

+64
-35
lines changed

package.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"vue"
1313
],
1414
"license": "MIT",
15-
"main": "dist/rollup-plugin-vue.js",
15+
"main": "dist/index.js",
1616
"module": "dist/rollup-plugin-vue.mjs",
1717
"typings": "dist/index.d.ts",
1818
"repository": {
@@ -26,10 +26,10 @@
2626
},
2727
"scripts": {
2828
"prepublishOnly": "rm -rf dist/ && yarn build",
29-
"build": "yarn :build",
29+
"dev": "tsc -w",
30+
"build": "tsc",
3031
"docs": "yarn :docs",
3132
"pre:build": "yarn lint",
32-
":build": "rollup -c",
3333
"pre:build:docs": "cp CHANGELOG.md docs/changelog.md",
3434
":build:docs": "vuepress build docs/",
3535
"post:build:docs": "rm docs/changelog.md",
@@ -62,8 +62,9 @@
6262
"@babel/preset-env": "^7.0.0-beta.46",
6363
"@babel/runtime": "^7.0.0-beta.46",
6464
"@types/debug": "^0.0.31",
65+
"@types/hash-sum": "^1.0.0",
6566
"@types/jest": "^23.3.12",
66-
"@types/node": "^10.12.18",
67+
"@types/node": "^16.10.3",
6768
"@types/puppeteer": "^1.3.1",
6869
"@znck/promised": "^1.0.0",
6970
"babel-core": "7.0.0-bridge.0",
@@ -73,10 +74,10 @@
7374
"jest": "^23.6.0",
7475
"postcss": "^7.0.11",
7576
"postcss-assets": "^5.0.0",
76-
"prettier": "^1.12.1",
77+
"prettier": "^2.5.1",
7778
"pug": "^2.0.3",
7879
"puppeteer": "^1.4.0",
79-
"rollup": "^1.1.0",
80+
"rollup": "^2.7.2",
8081
"rollup-plugin-babel": "^4.0.0-beta.4",
8182
"rollup-plugin-commonjs": "^9.1.3",
8283
"rollup-plugin-css-only": "^0.4.0",
@@ -88,13 +89,19 @@
8889
"rollup-plugin-url": "^2.1.0",
8990
"sass": "^1.18.0",
9091
"ts-jest": "^23.10.5",
91-
"typescript": "^3.2.2",
92-
"vue": "^2.5.16",
92+
"typescript": "^4.4.4",
93+
"vue": "^2.6.14",
9394
"vue-class-component": "^6.2.0",
94-
"vue-template-compiler": "^2.5.16",
95+
"vue-template-compiler": "^2.6.14",
9596
"vuepress": "^0.14.8"
9697
},
9798
"peerDependencies": {
9899
"vue-template-compiler": "*"
100+
},
101+
"prettier": {
102+
"printWidth": 80,
103+
"trailingComma": "es5",
104+
"semi": false,
105+
"singleQuote": true
99106
}
100107
}

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"outDir": "dist",
5-
"sourceMap": false,
5+
"sourceMap": true,
66
"target": "ES2015",
7-
"module": "es6",
7+
"module": "CommonJS",
88
"moduleResolution": "node",
99
"resolveJsonModule": true,
10+
"esModuleInterop": true,
1011
"declaration": true,
1112
"allowJs": false,
1213
"allowSyntheticDefaultImports": true,
@@ -16,6 +17,6 @@
1617
"removeComments": false,
1718
"lib": ["es2015", "es6", "es7", "dom"]
1819
},
19-
"include": ["src", "typings"],
20+
"include": ["src"],
2021
"exclude": ["node_modules"]
2122
}

yarn.lock

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,21 +1369,26 @@
13691369
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-0.0.31.tgz#bac8d8aab6a823e91deb7f79083b2a35fa638f33"
13701370
integrity sha512-LS1MCPaQKqspg7FvexuhmDbWUhE2yIJ+4AgVIyObfc06/UKZ8REgxGNjZc82wPLWmbeOm7S+gSsLgo75TanG4A==
13711371

1372-
"@types/estree@0.0.39":
1373-
version "0.0.39"
1374-
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
1375-
integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
1372+
"@types/hash-sum@^1.0.0":
1373+
version "1.0.0"
1374+
resolved "https://registry.npmjs.org/@types/hash-sum/-/hash-sum-1.0.0.tgz#838f4e8627887d42b162d05f3d96ca636c2bc504"
1375+
integrity sha512-FdLBT93h3kcZ586Aee66HPCVJ6qvxVjBlDWNmxSGSbCZe9hTsjRKdSsl4y1T+3zfujxo9auykQMnFsfyHWD7wg==
13761376

13771377
"@types/jest@^23.3.12":
13781378
version "23.3.12"
13791379
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-23.3.12.tgz#7e0ced251fa94c3bc2d1023d4b84b2992fa06376"
13801380
integrity sha512-/kQvbVzdEpOq4tEWT79yAHSM4nH4xMlhJv2GrLVQt4Qmo8yYsPdioBM1QpN/2GX1wkfMnyXvdoftvLUr0LBj7Q==
13811381

1382-
"@types/node@*", "@types/node@^10.12.18":
1382+
"@types/node@*":
13831383
version "10.12.18"
13841384
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67"
13851385
integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ==
13861386

1387+
"@types/node@^16.10.3":
1388+
version "16.11.11"
1389+
resolved "https://registry.npmjs.org/@types/node/-/node-16.11.11.tgz#6ea7342dfb379ea1210835bada87b3c512120234"
1390+
integrity sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==
1391+
13871392
"@types/puppeteer@^1.3.1":
13881393
version "1.11.1"
13891394
resolved "https://registry.yarnpkg.com/@types/puppeteer/-/puppeteer-1.11.1.tgz#f2fe2e08917af2b4dc4b03bd2b838c05cb9d8410"
@@ -1734,7 +1739,7 @@ acorn@^5.0.0, acorn@^5.5.3, acorn@^5.6.2:
17341739
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279"
17351740
integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==
17361741

1737-
acorn@^6.0.1, acorn@^6.0.5:
1742+
acorn@^6.0.1:
17381743
version "6.0.5"
17391744
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.0.5.tgz#81730c0815f3f3b34d8efa95cb7430965f4d887a"
17401745
integrity sha512-i33Zgp3XWtmZBMNvCr4azvOFeWVw1Rk6p3hfi3LUDvIFraOMywb1kAtrbi+med14m4Xfpqm3zRZMT+c0FNE7kg==
@@ -4635,6 +4640,11 @@ fsevents@^1.2.7:
46354640
nan "^2.9.2"
46364641
node-pre-gyp "^0.10.0"
46374642

4643+
fsevents@~2.3.2:
4644+
version "2.3.2"
4645+
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
4646+
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
4647+
46384648
function-bind@^1.1.1:
46394649
version "1.1.1"
46404650
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
@@ -8164,16 +8174,16 @@ prettier@1.16.3:
81648174
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.3.tgz#8c62168453badef702f34b45b6ee899574a6a65d"
81658175
integrity sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw==
81668176

8167-
prettier@^1.12.1:
8168-
version "1.15.3"
8169-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.3.tgz#1feaac5bdd181237b54dbe65d874e02a1472786a"
8170-
integrity sha512-gAU9AGAPMaKb3NNSUUuhhFAS7SCO4ALTN4nRIn6PJ075Qd28Yn2Ig2ahEJWdJwJmlEBTUfC7mMUSFy8MwsOCfg==
8171-
81728177
prettier@^1.18.2:
81738178
version "1.19.1"
81748179
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
81758180
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
81768181

8182+
prettier@^2.5.1:
8183+
version "2.5.1"
8184+
resolved "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
8185+
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
8186+
81778187
pretty-bytes@^4.0.2:
81788188
version "4.0.2"
81798189
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
@@ -9041,14 +9051,12 @@ rollup@^0.34.7:
90419051
dependencies:
90429052
source-map-support "^0.4.0"
90439053

9044-
rollup@^1.1.0:
9045-
version "1.1.0"
9046-
resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.1.0.tgz#461a7534b55be48aa4a6e6810a1543a5769e75d1"
9047-
integrity sha512-NK03gkkOz0CchHBMGomcNqa6U3jLNzHuWK9SI0+1FV475JA6cQxVtjlDcQoKKDNIQ3IwYumIlgoKYDEWUyFBwQ==
9048-
dependencies:
9049-
"@types/estree" "0.0.39"
9050-
"@types/node" "*"
9051-
acorn "^6.0.5"
9054+
rollup@^2.7.2:
9055+
version "2.60.2"
9056+
resolved "https://registry.npmjs.org/rollup/-/rollup-2.60.2.tgz#3f45ace36a9b10b4297181831ea0719922513463"
9057+
integrity sha512-1Bgjpq61sPjgoZzuiDSGvbI1tD91giZABgjCQBKM5aYLnzjq52GoDuWVwT/cm/MCxCMPU8gqQvkj8doQ5C8Oqw==
9058+
optionalDependencies:
9059+
fsevents "~2.3.2"
90529060

90539061
rsvp@^3.3.3:
90549062
version "3.6.2"
@@ -10004,10 +10012,10 @@ typedarray@^0.0.6:
1000410012
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1000510013
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1000610014

10007-
typescript@^3.2.2:
10008-
version "3.2.2"
10009-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5"
10010-
integrity sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==
10015+
typescript@^4.4.4:
10016+
version "4.5.2"
10017+
resolved "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998"
10018+
integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==
1001110019

1001210020
uc.micro@^1.0.1, uc.micro@^1.0.5:
1001310021
version "1.0.5"
@@ -10351,6 +10359,14 @@ vue-template-compiler@^2.5.16:
1035110359
de-indent "^1.0.2"
1035210360
he "^1.1.0"
1035310361

10362+
vue-template-compiler@^2.6.14:
10363+
version "2.6.14"
10364+
resolved "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.14.tgz#a2f0e7d985670d42c9c9ee0d044fed7690f4f763"
10365+
integrity sha512-ODQS1SyMbjKoO1JBJZojSw6FE4qnh9rIpUZn2EUT86FKizx9uH5z6uXiIrm4/Nb/gwxTi/o17ZDEGWAXHvtC7g==
10366+
dependencies:
10367+
de-indent "^1.0.2"
10368+
he "^1.1.0"
10369+
1035410370
vue-template-es2015-compiler@^1.6.0:
1035510371
version "1.8.1"
1035610372
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.8.1.tgz#e2ec4f42d16b6c712e61899c6b20bcdb1df128ca"
@@ -10366,6 +10382,11 @@ vue@^2.5.16:
1036610382
resolved "https://registry.yarnpkg.com/vue/-/vue-2.5.22.tgz#3bf88041af08b8539c37b268b70ca79245e9cc30"
1036710383
integrity sha512-pxY3ZHlXNJMFQbkjEgGVMaMMkSV1ONpz+4qB55kZuJzyJOhn6MSy/YZdzhdnumegNzVTL/Dn3Pp4UrVBYt1j/g==
1036810384

10385+
vue@^2.6.14:
10386+
version "2.6.14"
10387+
resolved "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz#e51aa5250250d569a3fbad3a8a5a687d6036e235"
10388+
integrity sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==
10389+
1036910390
vuepress-html-webpack-plugin@^3.2.0:
1037010391
version "3.2.0"
1037110392
resolved "https://registry.yarnpkg.com/vuepress-html-webpack-plugin/-/vuepress-html-webpack-plugin-3.2.0.tgz#219be272ad510faa8750d2d4e70fd028bfd1c16e"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy