Skip to content

Commit

Permalink
chore(tsup-node): change build to tsup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
kucherenko committed May 26, 2024
1 parent f24dc73 commit 2393e89
Show file tree
Hide file tree
Showing 11 changed files with 14,173 additions and 2,509 deletions.
2 changes: 1 addition & 1 deletion apps/jscpd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"url": "git+ssh://[email protected]/kucherenko/jscpd.git"
},
"scripts": {
"build": "tsup",
"build": "tsup-node --dts",
"dev": "nodemon",
"test": "vitest run",
"typecheck": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/badge-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"./README.md": "./README.md"
},
"scripts": {
"build": "tsup --dts",
"build": "tsup-node --dts",
"dev": "nodemon",
"test:dev": "vitest",
"typecheck": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"./README.md": "./README.md"
},
"scripts": {
"build": "tsup --dts",
"build": "tsup-node --dts",
"dev": "nodemon",
"test:dev": "vitest",
"typecheck": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/finder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"./README.md": "./README.md"
},
"scripts": {
"build": "tsup --dts",
"build": "tsup-node --dts",
"dev": "nodemon",
"test": "vitest run",
"typecheck": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/html-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"./README.md": "./README.md"
},
"scripts": {
"build": "tsup --dts",
"build": "tsup-node --dts",
"postbuild": "ncp ./src/templates ./dist/templates",
"dev": "nodemon",
"test:dev": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/html-reporter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {join} from 'path';
import {IClone, IOptions, IStatistic} from '@jscpd/core';
import type {IClone, IOptions, IStatistic} from '@jscpd/core';
import {IReporter, JsonReporter} from "@jscpd/finder";
import {copySync, writeFileSync} from "fs-extra";
import {green, red} from "colors/safe";
Expand Down
5 changes: 3 additions & 2 deletions packages/html-reporter/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import {defineConfig} from 'tsup'

export default defineConfig({
entry: ['src/index.ts'],
splitting: true,
splitting: false,
sourcemap: true,
clean: true,
format: ['esm', 'cjs']
format: ['esm', 'cjs'],
shims: true,
})
2 changes: 1 addition & 1 deletion packages/leveldb-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"./README.md": "./README.md"
},
"scripts": {
"build": "tsup --dts",
"build": "tsup-node --dts",
"dev": "nodemon",
"test:dev": "vitest",
"typecheck": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/redis-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"./README.md": "./README.md"
},
"scripts": {
"build": "tsup --dts",
"build": "tsup-node --dts",
"dev": "nodemon",
"test:dev": "vitest",
"typecheck": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/tokenizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"./README.md": "./README.md"
},
"scripts": {
"build": "tsup --dts",
"build": "tsup-node --dts",
"dev": "nodemon",
"test:dev": "vitest",
"typecheck": "tsc",
Expand Down
Loading

0 comments on commit 2393e89

Please sign in to comment.