Skip to content

Commit

Permalink
Merge pull request #75 from citrus327/feat/dev
Browse files Browse the repository at this point in the history
fix DX & building issues
  • Loading branch information
npmstudy authored Mar 11, 2024
2 parents 086df91 + 9ee573e commit 4e64dc1
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 23 deletions.
5 changes: 0 additions & 5 deletions .changeset/lazy-dots-fetch.md

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ test/e2e/mmi/dist/

demo
packages/minecat/src/__tests__/cmd/sss/

# v8 coverage cache in windows
v8-compile-cache-*/
7 changes: 7 additions & 0 deletions example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example

## 1.0.26

### Patch Changes

- Updated dependencies [9d9cc59]
- [email protected]

## 1.0.25

### Patch Changes
Expand Down
9 changes: 5 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "example",
"version": "1.0.25",
"version": "1.0.26",
"description": "",
"main": "index.js",
"private": true,
"scripts": {
"dev": "tsx watch src/app.ts"
"dev": "tsx watch src/app.ts",
"minecat": "minecat"
},
"devDependencies": {
"@types/koa": "^2.13.9",
Expand All @@ -14,6 +15,6 @@
"typescript": "^4.9.5"
},
"dependencies": {
"minecat": "workspace:*"
"minecat": "workspace:minecat@*"
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "minecat",
"name": "minecat-monorepo",
"private": true,
"minecat": {
"type": "Node.js"
Expand Down
9 changes: 5 additions & 4 deletions packages/libargs/tsup.config.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { defineConfig } from 'tsup';
import { defineConfig } from "tsup";

export default defineConfig((options) => ({
entry: 'src/index.ts',
entry: "src/index.ts",
sourcemap: !options.watch,
minify: !options.watch,
dts: true,
format: ['esm', 'cjs'],
clean: true,
format: ["esm", "cjs"],
loader: {
'.js': 'jsx',
".js": "jsx",
},
}));
6 changes: 6 additions & 0 deletions packages/minecat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# minecat

## 0.7.8

### Patch Changes

- 9d9cc59: add minecat run test

## 0.7.7

### Patch Changes
Expand Down
15 changes: 13 additions & 2 deletions packages/minecat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minecat",
"version": "0.7.7",
"version": "0.7.8",
"description": "a monorepo cli tool for Node.js、React",
"bin": {
"minecat": "dist/cli.js"
Expand All @@ -12,8 +12,19 @@
"type": "module",
"author": "npmstudy <[email protected]>",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": {
"import": "./dist/index.d.ts",
"require": "./dist/index.d.cts"
},
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
}
},
"files": [
"dist",
"postinstall.js"
Expand Down
9 changes: 5 additions & 4 deletions packages/minecat/tsup.config.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { defineConfig } from 'tsup';
import { defineConfig } from "tsup";

export default defineConfig((options) => ({
entry: 'src/index.ts',
entry: "src/index.ts",
sourcemap: !options.watch,
minify: !options.watch,
dts: true,
format: ['esm', 'cjs'],
clean: true,
format: ["esm", "cjs"],
loader: {
'.js': 'jsx',
".js": "jsx",
},
}));
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e64dc1

Please sign in to comment.