Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jaywcjlove/tsbb
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.1.3
Choose a base ref
...
head repository: jaywcjlove/tsbb
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.1.4
Choose a head ref
  • 4 commits
  • 13 files changed
  • 3 contributors

Commits on Sep 8, 2021

  1. fix(deps): update dependency jest to v27.1.1 (#267)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 8, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ea6a5e7 View commit details
  2. fix(deps): update dependency recursive-readdir-files to v1.1.1 (#266)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 8, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    da1c454 View commit details
  3. Copy the full SHA
    8f63b00 View commit details
  4. released v3.1.4

    jaywcjlove committed Sep 8, 2021
    Copy the full SHA
    66d0f46 View commit details
4 changes: 2 additions & 2 deletions example/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@template/basic",
"private": true,
"version": "3.1.3",
"version": "3.1.4",
"description": "Basic Example.",
"scripts": {
"start": "node lib/index.js",
@@ -17,6 +17,6 @@
"keywords": [],
"license": "MIT",
"devDependencies": {
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
}
}
4 changes: 2 additions & 2 deletions example/express-typeorm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@template/express-typeorm",
"version": "3.1.3",
"version": "3.1.4",
"private": true,
"description": "Express Typeorm Example.",
"scripts": {
@@ -35,7 +35,7 @@
"nodemon": "2.0.12",
"ts-node": "10.2.1",
"ts-node-dev": "1.1.8",
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
},
"dependencies": {
"compression": "1.7.4",
4 changes: 2 additions & 2 deletions example/express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@template/express",
"version": "3.1.3",
"version": "3.1.4",
"private": true,
"description": "Express Example.",
"scripts": {
@@ -33,7 +33,7 @@
"@types/http-errors": "1.8.1",
"nodemon": "2.0.12",
"ts-node-dev": "1.1.8",
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
},
"dependencies": {
"compression": "1.7.4",
4 changes: 2 additions & 2 deletions example/hapi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@template/hapi",
"version": "3.1.3",
"version": "3.1.4",
"private": true,
"description": "hapi Example.",
"main": "index.js",
@@ -30,7 +30,7 @@
"devDependencies": {
"@types/hapi__hapi": "20.0.9",
"nodemon": "2.0.12",
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
},
"dependencies": {
"@babel/runtime": "7.15.4",
4 changes: 2 additions & 2 deletions example/koa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@template/koa",
"version": "3.1.3",
"version": "3.1.4",
"private": true,
"description": "Koa Example",
"scripts": {
@@ -28,7 +28,7 @@
"devDependencies": {
"@types/koa": "2.13.4",
"nodemon": "2.0.12",
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
},
"dependencies": {
"koa": "2.13.1"
4 changes: 2 additions & 2 deletions example/react-component-tsx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@template/react-component-tsx",
"version": "3.1.3",
"version": "3.1.4",
"description": "React Component Example for TypeScript.",
"private": true,
"main": "lib/index.js",
@@ -52,7 +52,7 @@
"prettier": "2.3.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
},
"eslintConfig": {
"extends": [
4 changes: 2 additions & 2 deletions example/react-component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@template/react-component",
"version": "3.1.3",
"version": "3.1.4",
"private": true,
"description": "React Component Example.",
"scripts": {
@@ -42,7 +42,7 @@
"less": "4.1.1",
"parcel": "2.0.0-rc.0",
"react-test-renderer": "17.0.2",
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
},
"dependencies": {
"@parcel/transformer-react-refresh-wrap": "2.0.0-alpha.3",
4 changes: 2 additions & 2 deletions example/transform-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@template/transform-typescript",
"private": true,
"version": "3.1.3",
"version": "3.1.4",
"description": "Transform Typescript Example.",
"scripts": {
"watch": "tsbb watch --disable-babel-option --no-esm",
@@ -17,6 +17,6 @@
"keywords": [],
"license": "MIT",
"devDependencies": {
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
}
}
4 changes: 2 additions & 2 deletions example/umd/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@template/umd",
"private": true,
"version": "3.1.3",
"version": "3.1.4",
"description": "UMD Example.",
"scripts": {
"watch": "tsbb watch --no-esm --disable-babel",
@@ -12,6 +12,6 @@
"keywords": [],
"license": "MIT",
"devDependencies": {
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
}
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.1.3",
"version": "3.1.4",
"packages": ["example/*", "packages/*"],
"command": {
"bootstrap": {
4 changes: 2 additions & 2 deletions packages/create-tsbb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-tsbb",
"version": "3.1.3",
"version": "3.1.4",
"description": "Creates a TSBB application using the command line.",
"homepage": "https://jaywcjlove.github.io/tsbb",
"author": "Kenny Wong <wowohoo@qq.com> (https://github.com/jaywcjlove)",
@@ -36,7 +36,7 @@
"frontend"
],
"devDependencies": {
"tsbb": "^3.1.3"
"tsbb": "^3.1.4"
},
"dependencies": {
"create-kkt": "2.3.0"
6 changes: 3 additions & 3 deletions packages/tsbb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsbb",
"version": "3.1.3",
"version": "3.1.4",
"description": "TSBB is a zero-config CLI that helps you develop, test, and publish modern TypeScript project.",
"author": "kenny wang <wowohoo@qq.com>",
"license": "MIT",
@@ -51,10 +51,10 @@
"execa": "5.1.1",
"fs-extra": "10.0.0",
"identity-obj-proxy": "3.0.0",
"jest": "27.1.0",
"jest": "27.1.1",
"jest-watch-typeahead": "0.6.4",
"micromatch": "4.0.4",
"recursive-readdir-files": "1.1.0",
"recursive-readdir-files": "1.1.1",
"semver": "7.3.5",
"typescript": "4.4.2",
"yargs-parser": "20.2.9"
7 changes: 6 additions & 1 deletion packages/tsbb/src/utils/compile.ts
Original file line number Diff line number Diff line change
@@ -19,7 +19,12 @@ export async function compile(
cjs = path.relative(ts.sys.getCurrentDirectory(), cjs);
return new Promise(async (resolve, reject) => {
try {
await FS.remove(outDir);
if (tsOptions.outDir || cjs) {
await FS.remove(outDir);
}
if (esm) {
await FS.remove(path.resolve(process.cwd(), esm));
}
const dirToFiles = await recursiveReaddirFiles(path.dirname(entry), {
exclude: /(tsconfig.json|.d.ts|.(test|spec).(ts|tsx|js|jsx))$/,
});