diff --git a/package.json b/package.json index 32a09ad..964795c 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "examples/*" ], "scripts": { - "build": "tsc -p tsconfig.json", + "build": "rimraf dist && tsc -p tsconfig.json", "preview": "npm run build && npm -C examples/react-app run generate:api", "prepublishOnly": "npm run build", "release": "npx git-ensure -a && npx bumpp --commit --tag --push" @@ -41,6 +41,7 @@ "@types/node": "^20.10.6", "commander": "^12.0.0", "glob": "^10.3.10", + "rimraf": "^5.0.5", "ts-morph": "^22.0.0", "typescript": "^5.3.3" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 99b8192..f2113c8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: glob: specifier: ^10.3.10 version: 10.3.12 + rimraf: + specifier: ^5.0.5 + version: 5.0.5 ts-morph: specifier: ^22.0.0 version: 22.0.0 @@ -2950,6 +2953,14 @@ packages: engines: {iojs: '>=1.0.0', node: '>=0.10.0'} dev: true + /rimraf@5.0.5: + resolution: {integrity: sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==} + engines: {node: '>=14'} + hasBin: true + dependencies: + glob: 10.3.12 + dev: true + /rollup@4.13.2: resolution: {integrity: sha512-MIlLgsdMprDBXC+4hsPgzWUasLO9CE4zOkj/u6j+Z6j5A4zRY+CtiXAdJyPtgCsc42g658Aeh1DlrdVEJhsL2g==} engines: {node: '>=18.0.0', npm: '>=8.0.0'}