Skip to content

Commit 8e4d798

Browse files
authored
Ensure clean before publish (#101)
1 parent f542f43 commit 8e4d798

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
"type": "module",
2222
"scripts": {
2323
"build": "rollup -c rollup.config.js",
24+
"clean": "rimraf dist",
2425
"fmt:check": "prettier './src/**/*.ts' --check",
2526
"fmt": "prettier './src/**/*.ts' --write",
2627
"test": "vitest run",
2728
"typecheck": "tsc --build",
29+
"prepublishOnly": "yarn clean && yarn build",
2830
"watch": "tsc --watch --declaration"
2931
},
3032
"files": [
@@ -39,6 +41,7 @@
3941
"@rollup/plugin-typescript": "^11.1.2",
4042
"apache-arrow": "^15",
4143
"prettier": "^3.1.0",
44+
"rimraf": "^5.0.5",
4245
"rollup": "^4.1.5",
4346
"rollup-plugin-dts": "^6.1.0",
4447
"rust-arrow-ffi": "link:./tests/rust-arrow-ffi/pkg/",

yarn.lock

+40
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ __metadata:
794794
"@rollup/plugin-typescript": "npm:^11.1.2"
795795
apache-arrow: "npm:^15"
796796
prettier: "npm:^3.1.0"
797+
rimraf: "npm:^5.0.5"
797798
rollup: "npm:^4.1.5"
798799
rollup-plugin-dts: "npm:^6.1.0"
799800
rust-arrow-ffi: "link:./tests/rust-arrow-ffi/pkg/"
@@ -1409,6 +1410,21 @@ __metadata:
14091410
languageName: node
14101411
linkType: hard
14111412

1413+
"glob@npm:^10.3.7":
1414+
version: 10.3.10
1415+
resolution: "glob@npm:10.3.10"
1416+
dependencies:
1417+
foreground-child: "npm:^3.1.0"
1418+
jackspeak: "npm:^2.3.5"
1419+
minimatch: "npm:^9.0.1"
1420+
minipass: "npm:^5.0.0 || ^6.0.2 || ^7.0.0"
1421+
path-scurry: "npm:^1.10.1"
1422+
bin:
1423+
glob: dist/esm/bin.mjs
1424+
checksum: 38bdb2c9ce75eb5ed168f309d4ed05b0798f640b637034800a6bf306f39d35409bf278b0eaaffaec07591085d3acb7184a201eae791468f0f617771c2486a6a8
1425+
languageName: node
1426+
linkType: hard
1427+
14121428
"glob@npm:^7.1.3, glob@npm:^7.1.4":
14131429
version: 7.2.3
14141430
resolution: "glob@npm:7.2.3"
@@ -1601,6 +1617,19 @@ __metadata:
16011617
languageName: node
16021618
linkType: hard
16031619

1620+
"jackspeak@npm:^2.3.5":
1621+
version: 2.3.6
1622+
resolution: "jackspeak@npm:2.3.6"
1623+
dependencies:
1624+
"@isaacs/cliui": "npm:^8.0.2"
1625+
"@pkgjs/parseargs": "npm:^0.11.0"
1626+
dependenciesMeta:
1627+
"@pkgjs/parseargs":
1628+
optional: true
1629+
checksum: 6e6490d676af8c94a7b5b29b8fd5629f21346911ebe2e32931c2a54210134408171c24cee1a109df2ec19894ad04a429402a8438cbf5cc2794585d35428ace76
1630+
languageName: node
1631+
linkType: hard
1632+
16041633
"js-tokens@npm:^4.0.0":
16051634
version: 4.0.0
16061635
resolution: "js-tokens@npm:4.0.0"
@@ -2190,6 +2219,17 @@ __metadata:
21902219
languageName: node
21912220
linkType: hard
21922221

2222+
"rimraf@npm:^5.0.5":
2223+
version: 5.0.5
2224+
resolution: "rimraf@npm:5.0.5"
2225+
dependencies:
2226+
glob: "npm:^10.3.7"
2227+
bin:
2228+
rimraf: dist/esm/bin.mjs
2229+
checksum: a612c7184f96258b7d1328c486b12ca7b60aa30e04229a08bbfa7e964486deb1e9a1b52d917809311bdc39a808a4055c0f950c0280fba194ba0a09e6f0d404f6
2230+
languageName: node
2231+
linkType: hard
2232+
21932233
"rollup-plugin-dts@npm:^6.1.0":
21942234
version: 6.1.0
21952235
resolution: "rollup-plugin-dts@npm:6.1.0"

0 commit comments

Comments
 (0)