Skip to content

Commit

Permalink
build: update publish related config
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Jun 19, 2023
1 parent b93b59b commit 24fc6ef
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions index.ts

This file was deleted.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "@bingtsingw-c/xstools",
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist",
"src"
],
"scripts": {
"build": "tsup",
"clean": "rimraf dist",
Expand Down Expand Up @@ -104,7 +108,7 @@
},
"tsup": {
"entry": [
"index.ts"
"src/index.ts"
],
"format": [
"esm",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './collection';
export * from './format';
export * from './generator';
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"experimentalDecorators": true,
"strictPropertyInitialization": false
},
"include": ["index.ts", "**/*.ts", "**/*.tsx", "**/**/*.ts", "**/**/*.tsx"]
"include": ["src"]
}

0 comments on commit 24fc6ef

Please sign in to comment.