add clean-publish

This commit is contained in:
Robert Soriano
2022-05-19 01:19:23 -07:00
parent 27a553cd88
commit 31cde3e8a2
2 changed files with 23 additions and 1 deletions

View File

@@ -2,6 +2,9 @@
"name": "trpc-nuxt", "name": "trpc-nuxt",
"type": "module", "type": "module",
"version": "0.0.3", "version": "0.0.3",
"publishConfig": {
"directory": "package"
},
"packageManager": "pnpm@7.1.0", "packageManager": "pnpm@7.1.0",
"license": "MIT", "license": "MIT",
"main": "./dist/module.cjs", "main": "./dist/module.cjs",
@@ -21,11 +24,17 @@
"dist", "dist",
"*.d.ts" "*.d.ts"
], ],
"clean-publish": {
"withoutPublish": true,
"tempDir": "package"
},
"scripts": { "scripts": {
"prepublishOnly": "nr build", "prepublishOnly": "rimraf ./package && nr build && clean-publish",
"postpublish": "rimraf ./package",
"build": "nuxt-module-build", "build": "nuxt-module-build",
"play": "nr build && nuxi dev playground", "play": "nr build && nuxi dev playground",
"lint": "eslint .", "lint": "eslint .",
"lint:fix": "eslint . --fix",
"release": "bumpp --commit --push --tag && pnpm publish", "release": "bumpp --commit --push --tag && pnpm publish",
"prepare": "nuxi prepare playground" "prepare": "nuxi prepare playground"
}, },
@@ -44,6 +53,7 @@
"@nuxt/module-builder": "latest", "@nuxt/module-builder": "latest",
"@types/fs-extra": "^9.0.13", "@types/fs-extra": "^9.0.13",
"bumpp": "^7.1.1", "bumpp": "^7.1.1",
"clean-publish": "^4.0.0",
"eslint": "^8.14.0", "eslint": "^8.14.0",
"nuxt": "^3.0.0-rc.3", "nuxt": "^3.0.0-rc.3",
"ohash": "^0.1.0", "ohash": "^0.1.0",

12
pnpm-lock.yaml generated
View File

@@ -12,6 +12,7 @@ importers:
'@trpc/server': ^9.23.2 '@trpc/server': ^9.23.2
'@types/fs-extra': ^9.0.13 '@types/fs-extra': ^9.0.13
bumpp: ^7.1.1 bumpp: ^7.1.1
clean-publish: ^4.0.0
eslint: ^8.14.0 eslint: ^8.14.0
fs-extra: ^10.1.0 fs-extra: ^10.1.0
h3: ^0.7.8 h3: ^0.7.8
@@ -37,6 +38,7 @@ importers:
'@nuxt/module-builder': 0.1.7 '@nuxt/module-builder': 0.1.7
'@types/fs-extra': 9.0.13 '@types/fs-extra': 9.0.13
bumpp: 7.1.1 bumpp: 7.1.1
clean-publish: 4.0.0
eslint: 8.15.0 eslint: 8.15.0
nuxt: 3.0.0-rc.3 nuxt: 3.0.0-rc.3
ohash: 0.1.0 ohash: 0.1.0
@@ -1693,6 +1695,16 @@ packages:
resolution: {integrity: sha512-SXgeMX9VwDe7iFFaEWkA5AstuER9YKqy4EhHqr4DVqkwmD9rpVimkMKWHdjn30Ja45txyjhSn63lVX69eVCckg==} resolution: {integrity: sha512-SXgeMX9VwDe7iFFaEWkA5AstuER9YKqy4EhHqr4DVqkwmD9rpVimkMKWHdjn30Ja45txyjhSn63lVX69eVCckg==}
dev: true dev: true
/clean-publish/4.0.0:
resolution: {integrity: sha512-PcOxJSnPgncx/ANmgPw8hj9DDtdLHTxIc6Vh/yXCX7IA9w1oUSx2POL0Vno/7omhyrKxMKTpnRh2wlzwH5zaCw==}
hasBin: true
dependencies:
cross-spawn: 7.0.3
fast-glob: 3.2.11
lilconfig: 2.0.5
micromatch: 4.0.5
dev: true
/clean-regexp/1.0.0: /clean-regexp/1.0.0:
resolution: {integrity: sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==} resolution: {integrity: sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==}
engines: {node: '>=4'} engines: {node: '>=4'}