Skip to content

Commit

Permalink
chore: add properties to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Si committed Feb 20, 2022
1 parent 06c9b42 commit 06c20b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"url": "https://leonzalion.com"
},
"type": "module",
"main": "index.cjs",
"module": "index.js",
"types": "index.d.ts",
"scripts": {
"release": "lionp",
"prepare": "lion-git-hooks",
Expand Down
5 changes: 3 additions & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { execaCommandSync as exec } from 'execa';
import { copyPackageFiles, chProjectDir } from 'lion-system';
import { copyPackageFiles, chProjectDir, rmDist } from 'lion-system';

chProjectDir(import.meta.url);
exec('tsup src/index.ts --format cjs,esm');
rmDist();
exec('tsup src/index.ts --format cjs,esm --dts');
exec('tsc-alias');
copyPackageFiles();

0 comments on commit 06c20b7

Please sign in to comment.