Skip to content

Commit

Permalink
Merge pull request #16 from crashmax-dev/tsup
Browse files Browse the repository at this point in the history
feat: migrate from `microbundle` to `tsup`
  • Loading branch information
crashmax-dev authored Feb 16, 2023
2 parents 2a70474 + 30f50e2 commit e51146c
Show file tree
Hide file tree
Showing 20 changed files with 664 additions and 3,152 deletions.
2 changes: 1 addition & 1 deletion examples/with-lodash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "pnpm build && node dist/index.js",
"dev": "nodemon",
"build": "del-cli dist && tsc"
"build": "rm -rf dist && tsc"
},
"dependencies": {
"@stenodb/lodash": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion examples/with-lodash/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@crashmax/tsconfig",
"compilerOptions": {
"moduleResolution": "NodeNext",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"outDir": "dist"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "pnpm build && node dist/index.js",
"dev": "nodemon",
"build": "del-cli dist && tsc"
"build": "rm -rf dist && tsc"
},
"dependencies": {
"@stenodb/logger": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion examples/with-node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@crashmax/tsconfig",
"compilerOptions": {
"moduleResolution": "NodeNext",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"outDir": "dist"
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stenodb/workspace",
"version": "3.3.1",
"version": "3.3.2",
"type": "module",
"private": true,
"workspaces": [
Expand All @@ -18,10 +18,9 @@
"@crashmax/prettier-config": "2.2.1",
"@crashmax/tsconfig": "1.0.2",
"cross-env": "7.0.3",
"del-cli": "5.0.0",
"microbundle": "0.15.1",
"nodemon": "2.0.20",
"ts-node": "10.9.1",
"tsup": "6.6.3",
"tsx": "3.12.3",
"turbo": "1.7.4",
"typescript": "4.9.5"
Expand Down
26 changes: 13 additions & 13 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@stenodb/browser",
"description": "✍ Easy to use local JSON database",
"version": "3.3.1",
"type": "module",
"source": "./src/index.ts",
"version": "3.3.2",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.esm.js"
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"default": "./dist/index.mjs"
}
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist",
"src"
Expand Down Expand Up @@ -42,15 +42,15 @@
"ESM"
],
"scripts": {
"dev": "microbundle watch",
"build": "del-cli dist && microbundle --format esm,cjs --target web"
"dev": "pnpm build -- --watch src",
"build": "tsup src/index.ts --format esm,cjs --dts --clean"
},
"dependencies": {
"@stenodb/logger": "workspace:3.3.1",
"@stenodb/utils": "workspace:3.3.1"
"@stenodb/logger": "workspace:3.3.2",
"@stenodb/utils": "workspace:3.3.2"
},
"peerDependencies": {
"@stenodb/logger": "workspace:3.3.1"
"@stenodb/logger": "workspace:3.3.2"
},
"engines": {
"node": ">=14.16"
Expand Down
1 change: 0 additions & 1 deletion packages/browser/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@crashmax/tsconfig",
"compilerOptions": {
"moduleResolution": "NodeNext",
"outDir": "dist"
},
"include": [
Expand Down
27 changes: 13 additions & 14 deletions packages/lodash/package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,46 @@
{
"name": "@stenodb/lodash",
"version": "3.3.1",
"type": "module",
"version": "3.3.2",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.esm.js"
"require": "./dist/index.js",
"default": "./dist/index.mjs"
},
"./node": {
"types": "./dist/node.d.ts",
"require": "./dist/node.cjs",
"default": "./dist/node.esm.js"
"default": "./dist/node.js"
},
"./browser": {
"types": "./dist/browser.d.ts",
"require": "./dist/browser.cjs",
"default": "./dist/browser.esm.js"
"default": "./dist/browser.js"
}
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist",
"src"
],
"scripts": {
"dev": "microbundle watch",
"build": "del-cli dist && microbundle -i src/index.ts -i src/node.ts -i src/browser.ts --format esm,cjs"
"dev": "pnpm build -- --watch src",
"build": "tsup src/index.ts src/node.ts src/browser.ts --format esm,cjs --dts --clean"
},
"dependencies": {
"@stenodb/browser": "workspace:3.3.1",
"@stenodb/node": "workspace:3.3.1",
"@stenodb/browser": "workspace:3.3.2",
"@stenodb/node": "workspace:3.3.2",
"@types/lodash": "4.14.191",
"lodash": "4.17.21"
},
"devDependencies": {
"@types/node": "18.11.19"
},
"peerDependencies": {
"@stenodb/browser": "workspace:3.3.1",
"@stenodb/node": "workspace:3.3.1",
"@stenodb/browser": "workspace:3.3.2",
"@stenodb/node": "workspace:3.3.2",
"@types/lodash": "^4.14.191",
"lodash": "^4.17.21"
},
Expand Down
1 change: 0 additions & 1 deletion packages/lodash/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@crashmax/tsconfig",
"compilerOptions": {
"moduleResolution": "NodeNext",
"outDir": "dist"
},
"include": [
Expand Down
19 changes: 9 additions & 10 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
{
"name": "@stenodb/logger",
"version": "3.3.1",
"type": "module",
"version": "3.3.2",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.esm.js"
"require": "./dist/index.js",
"default": "./dist/index.mjs"
},
"./rotation": {
"types": "./dist/rotation.d.ts",
"require": "./dist/rotation.cjs",
"default": "./dist/rotation.esm.js"
"require": "./dist/rotation.js",
"default": "./dist/rotation.mjs"
}
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist",
"src"
],
"scripts": {
"dev": "microbundle watch",
"build": "del-cli dist && microbundle -i src/index.ts -i src/rotation.ts"
"dev": "pnpm build -- --watch src",
"build": "tsup src/index.ts src/rotation.ts --format esm,cjs --dts --clean"
},
"devDependencies": {
"@types/node": "18.11.19"
Expand Down
1 change: 0 additions & 1 deletion packages/logger/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@crashmax/tsconfig",
"compilerOptions": {
"moduleResolution": "NodeNext",
"outDir": "dist"
},
"include": [
Expand Down
17 changes: 8 additions & 9 deletions packages/nest/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@stenodb/nest",
"version": "3.3.1",
"type": "module",
"source": "./src/index.ts",
"version": "3.3.2",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs"
"require": "./dist/index.js",
"default": "./dist/index.mjs"
}
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist",
"src"
Expand All @@ -35,16 +35,15 @@
"local",
"class-transformer",
"JSON",
"ESM",
"nestjs"
],
"scripts": {
"dev": "microbundle watch",
"build": "del-cli dist && microbundle --format cjs --target node"
"dev": "pnpm build -- --watch src",
"build": "tsup src/index.ts --format esm,cjs --dts --clean --target node14"
},
"dependencies": {
"@nestjs/common": "9.3.7",
"@stenodb/node": "workspace:3.3.1",
"@stenodb/node": "workspace:3.3.2",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
31 changes: 15 additions & 16 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@stenodb/node",
"description": "✍ Easy to use local JSON database",
"version": "3.3.1",
"type": "module",
"source": "src/index.ts",
"version": "3.3.2",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.esm.js"
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"default": "./dist/index.mjs"
}
},
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist",
"src"
Expand All @@ -35,23 +35,22 @@
"database",
"local",
"class-transformer",
"JSON",
"ESM"
"JSON"
],
"scripts": {
"dev": "microbundle watch",
"build": "del-cli dist && microbundle --format esm,cjs --target node"
"dev": "pnpm build -- --watch src",
"build": "tsup src/index.ts --format esm,cjs --dts --clean --target node14"
},
"dependencies": {
"@stenodb/logger": "workspace:3.3.1",
"@stenodb/utils": "workspace:3.3.1",
"@stenodb/writer": "workspace:3.3.1"
"@stenodb/logger": "workspace:3.3.2",
"@stenodb/utils": "workspace:3.3.2",
"@stenodb/writer": "workspace:3.3.2"
},
"devDependencies": {
"@types/node": "18.11.19"
},
"peerDependencies": {
"@stenodb/logger": "workspace:3.3.1"
"@stenodb/logger": "workspace:3.3.2"
},
"engines": {
"node": ">=14.16"
Expand Down
1 change: 0 additions & 1 deletion packages/node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@crashmax/tsconfig",
"compilerOptions": {
"moduleResolution": "NodeNext",
"outDir": "dist"
},
"include": [
Expand Down
50 changes: 36 additions & 14 deletions packages/stenodb/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,51 @@
{
"name": "stenodb",
"version": "0.0.0",
"type": "module",
"source": "src/index.ts",
"description": "✍ Easy to use local JSON database",
"version": "3.3.2",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.esm.js"
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"default": "./dist/index.mjs"
}
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist",
"src"
],
"author": {
"name": "Vitalij Ryndin",
"email": "[email protected]",
"url": "https://crashmax.ru"
},
"license": "MIT",
"homepage": "https://github.com/crashmax-dev/stenodb/packages/node#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/crashmax-dev/stenodb.git"
},
"bugs": {
"url": "https://github.com/crashmax-dev/stenodb/issues"
},
"keywords": [
"db",
"database",
"local",
"class-transformer",
"JSON"
],
"scripts": {
"dev": "microbundle watch",
"build": "del-cli dist && microbundle --format esm,cjs"
"dev": "pnpm build -- --watch src",
"build": "tsup src/index.ts --format esm,cjs --dts --clean"
},
"dependencies": {
"@stenodb/browser": "workspace:3.3.1",
"@stenodb/lodash": "workspace:3.3.1",
"@stenodb/nest": "workspace:3.3.1",
"@stenodb/node": "workspace:3.3.1"
"@stenodb/browser": "workspace:3.3.2",
"@stenodb/lodash": "workspace:3.3.2",
"@stenodb/nest": "workspace:3.3.2",
"@stenodb/node": "workspace:3.3.2"
},
"engines": {
"node": ">=14.16"
Expand Down
Loading

0 comments on commit e51146c

Please sign in to comment.