From 1f377a9e88e3099d03311ce455bb512138c98e05 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 14 Mar 2023 14:00:18 +0100 Subject: [PATCH] chore: small fixes --- .eslintignore | 3 ++- .gitignore | 1 - README.md | 2 +- build.config.ts | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 build.config.ts diff --git a/.eslintignore b/.eslintignore index 616fabf..2915aba 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ dist node_modules -src/parser.ts +src/_parser.ts +coverage diff --git a/.gitignore b/.gitignore index d3ea3e8..4762fa5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,4 @@ types .DS_Store .eslintcache *.log* -*.conf* *.env* diff --git a/README.md b/README.md index 86d6afe..9982bf1 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ const { defineCommand, runMain } = require("citty"); Define main command to run: ```ts -import { defineCommand, runMain } from "../src"; +import { defineCommand, runMain } from "citty"; const main = defineCommand({ meta: { diff --git a/build.config.ts b/build.config.ts new file mode 100644 index 0000000..6e7f730 --- /dev/null +++ b/build.config.ts @@ -0,0 +1,7 @@ +import { defineBuildConfig } from "unbuild"; + +export default defineBuildConfig({ + rollup: { + inlineDependencies: true, + }, +});