kirbyup 0.20.1 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,8 +11,9 @@ The fastest and leanest way to bundle your Kirby Panel plugins. No configuration
11
11
  - 🔍 Watch mode
12
12
  - \*️⃣ `kirbyup.import` to [auto-import blocks & fields](#auto-import-blocks-and-fields)
13
13
  - 🎒 [PostCSS support](#postcss)
14
- - 🧭 [`~/` path resolve alias](#path-resolve-alias)
14
+ - 🧭 [Path resolve aliases](#path-resolve-aliases)
15
15
  - 🔌 [Env variables support](#env-variables)
16
+ - 🦔 [Extendable configuration with `kirbyup.config.js`](#extendable-configuration-with-kirbyupconfigjs)
16
17
 
17
18
  ## Requirements
18
19
 
@@ -58,7 +59,7 @@ Example package configuration:
58
59
  "build": "kirbyup src/index.js"
59
60
  },
60
61
  "devDependencies": {
61
- "kirbyup": "^0.20.0"
62
+ "kirbyup": "latest"
62
63
  }
63
64
  }
64
65
  ```
@@ -106,7 +107,7 @@ If no configuration file is found, kirbyup will apply two PostCSS plugins which
106
107
  - [postcss-logical](https://github.com/csstools/postcss-logical) lets you use logical, rather than physical, direction and dimension mappings in CSS, following the [CSS Logical Properties and Values](https://drafts.csswg.org/css-logical/) specification.
107
108
  - [postcss-dir-pseudo-class](https://github.com/csstools/postcss-dir-pseudo-class) lets you style by directionality using the `:dir()` pseudo-class in CSS, following the [Selectors](https://www.w3.org/TR/selectors-4/#the-dir-pseudo) specification. It gives you the same syntax Kirby uses for full compatibility with RTL localizations of the Panel.
108
109
 
109
- ### Path Resolve Alias
110
+ ### Path Resolve Aliases
110
111
 
111
112
  Import certain modules more easily by using the `~/` path alias. It will resolve to the directory of your input file, for example `src` when building `kirbyup src/index.js`.
112
113
 
@@ -187,6 +188,38 @@ KIRBYUP_SOME_KEY=123
187
188
 
188
189
  Only `KIRBYUP_SOME_KEY` will be exposed as `import.meta.env.VITE_SOME_KEY` to your plugin's source code, but `DB_PASSWORD` will not.
189
190
 
191
+ ### Extendable Configuration With `kirbyup.config.js`
192
+
193
+ Create a `kirbyup.config.js` or `kirbyup.config.ts` configuration file the root-level of your project to customize kirbyup.
194
+
195
+ ```js
196
+ import { resolve } from 'path'
197
+ import { defineConfig } from 'kirbyup'
198
+
199
+ export default defineConfig({
200
+ alias: {
201
+ '#deep/': `${resolve(__dirname, 'src/deep')}/`
202
+ },
203
+ extendViteConfig: {
204
+ build: {
205
+ lib: {
206
+ name: 'myPlugin'
207
+ }
208
+ }
209
+ }
210
+ })
211
+ ```
212
+
213
+ #### `alias`
214
+
215
+ When aliasing to file system paths, always use absolute paths. Relative alias values will be used as-is and will not be resolved into file system paths.
216
+
217
+ #### `extendViteConfig`
218
+
219
+ You can build upon the defaults kirbup uses and extend the Vite configuration with custom plugins etc.
220
+
221
+ For a complete list of options, take a look at the [Vite configuration options](https://vitejs.dev/config/).
222
+
190
223
  ## Options
191
224
 
192
225
  > Inspect all available options with `kirbyup --help`.
@@ -206,4 +239,4 @@ Sets the watch mode. If no path is specified, kirbyup watches the folder of the
206
239
 
207
240
  ## License
208
241
 
209
- MIT
242
+ [MIT](./LICENSE) License © 2021 [Johann Schopplich](https://github.com/johannschopplich)
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../dist/cli.cjs')
@@ -0,0 +1,283 @@
1
+ import { resolve, dirname, normalize, relative, basename } from 'pathe';
2
+ import { existsSync, statSync } from 'fs';
3
+ import { build as build$1, mergeConfig } from 'vite';
4
+ import { createVuePlugin } from 'vite-plugin-vue2';
5
+ import MagicString from 'magic-string';
6
+ import { createConfigLoader as createConfigLoader$1 } from 'unconfig';
7
+ import postcssrc from 'postcss-load-config';
8
+ import postcssLogical from 'postcss-logical';
9
+ import postcssDirPseudoClass from 'postcss-dir-pseudo-class';
10
+ import consola from 'consola';
11
+ import { white, dim, cyan, magenta, green } from 'colorette';
12
+ import { readFile } from 'fs/promises';
13
+ import { gzip } from 'zlib';
14
+ import { promisify } from 'util';
15
+
16
+ const multilineCommentsRE = /\/\*(.|[\r\n])*?\*\//gm;
17
+ const singlelineCommentsRE = /\/\/.*/g;
18
+
19
+ function kirbyupAutoImportPlugin() {
20
+ let config;
21
+ return {
22
+ name: "kirbyup:auto-import",
23
+ configResolved(resolvedConfig) {
24
+ config = resolvedConfig;
25
+ },
26
+ async transform(code, id) {
27
+ if (code.includes("kirbyup.import")) {
28
+ const kirbyupImportRE = /\bkirbyup\.import\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*\)/g;
29
+ const noCommentsCode = code.replace(multilineCommentsRE, (m) => " ".repeat(m.length)).replace(singlelineCommentsRE, (m) => " ".repeat(m.length));
30
+ let s = null;
31
+ let match;
32
+ while (match = kirbyupImportRE.exec(noCommentsCode)) {
33
+ const { 0: exp, 1: rawPath, index } = match;
34
+ if (!s)
35
+ s = new MagicString(code);
36
+ s.overwrite(index, index + exp.length, `kirbyup.import(import.meta.globEager(${rawPath}))`);
37
+ }
38
+ if (s) {
39
+ return {
40
+ code: s.toString(),
41
+ map: config.build.sourcemap ? s.generateMap({ hires: true }) : null
42
+ };
43
+ }
44
+ }
45
+ return null;
46
+ }
47
+ };
48
+ }
49
+
50
+ function defineConfig(config) {
51
+ return config;
52
+ }
53
+ function createConfigLoader(configOrPath = process.cwd(), extraConfigSources = []) {
54
+ let inlineConfig = {};
55
+ if (typeof configOrPath !== "string") {
56
+ inlineConfig = configOrPath;
57
+ configOrPath = process.cwd();
58
+ }
59
+ const resolved = resolve(configOrPath);
60
+ let cwd = resolved;
61
+ let isFile = false;
62
+ if (existsSync(resolved) && statSync(resolved).isFile()) {
63
+ isFile = true;
64
+ cwd = dirname(resolved);
65
+ }
66
+ const loader = createConfigLoader$1({
67
+ sources: isFile ? [
68
+ {
69
+ files: resolved,
70
+ extensions: []
71
+ }
72
+ ] : [
73
+ {
74
+ files: ["kirbyup.config"]
75
+ },
76
+ ...extraConfigSources
77
+ ],
78
+ cwd,
79
+ defaults: inlineConfig
80
+ });
81
+ return async () => {
82
+ const result = await loader.load();
83
+ result.config = result.config || inlineConfig;
84
+ return result;
85
+ };
86
+ }
87
+
88
+ class PrettyError extends Error {
89
+ constructor(message) {
90
+ super(message);
91
+ this.name = this.constructor.name;
92
+ if (typeof Error.captureStackTrace === "function") {
93
+ Error.captureStackTrace(this, this.constructor);
94
+ } else {
95
+ this.stack = new Error(message).stack;
96
+ }
97
+ }
98
+ }
99
+ function handleError(error) {
100
+ if (error instanceof PrettyError) {
101
+ consola.error(error.message);
102
+ }
103
+ process.exitCode = 1;
104
+ }
105
+
106
+ const compress = promisify(gzip);
107
+ async function getCompressedSize(code) {
108
+ const size = (await compress(typeof code === "string" ? code : Buffer.from(code))).length / 1024;
109
+ return ` / gzip: ${size.toFixed(2)} KiB`;
110
+ }
111
+ async function printFileInfo(root, outDir, filePath, type, content) {
112
+ content ?? (content = await readFile(resolve(outDir, filePath), "utf8"));
113
+ const prettyOutDir = normalize(relative(root, resolve(root, outDir))) + "/";
114
+ const kibs = content.length / 1024;
115
+ const compressedSize = await getCompressedSize(content);
116
+ const writeColor = type === "chunk" ? cyan : magenta;
117
+ consola.log(white(dim(prettyOutDir)) + writeColor(filePath) + " " + dim(`${kibs.toFixed(2)} KiB${compressedSize}`));
118
+ }
119
+ function debouncePromise(fn, delay, onError) {
120
+ let timeout;
121
+ let promiseInFly;
122
+ let callbackPending;
123
+ return function debounced(...args) {
124
+ if (promiseInFly) {
125
+ callbackPending = () => {
126
+ debounced(...args);
127
+ callbackPending = void 0;
128
+ };
129
+ } else {
130
+ if (timeout)
131
+ clearTimeout(timeout);
132
+ timeout = setTimeout(() => {
133
+ timeout = void 0;
134
+ promiseInFly = fn(...args).catch(onError).finally(() => {
135
+ promiseInFly = void 0;
136
+ if (callbackPending)
137
+ callbackPending();
138
+ });
139
+ }, delay);
140
+ }
141
+ };
142
+ }
143
+
144
+ // src/math.ts
145
+
146
+ // src/array.ts
147
+ function toArray(array) {
148
+ array = array || [];
149
+ if (Array.isArray(array))
150
+ return array;
151
+ return [array];
152
+ }
153
+
154
+ const name = "kirbyup";
155
+ const version = "0.22.1";
156
+
157
+ let resolvedKirbyupConfig;
158
+ let resolvedPostCssConfig;
159
+ async function viteBuild(options) {
160
+ let result;
161
+ const mode = options.watch ? "development" : "production";
162
+ const root = process.cwd();
163
+ const outDir = options.outDir ?? root;
164
+ const aliasDir = resolve(root, dirname(options.entry));
165
+ const { alias = {}, extendViteConfig = {} } = resolvedKirbyupConfig;
166
+ const defaultConfig = {
167
+ mode,
168
+ plugins: [createVuePlugin(), kirbyupAutoImportPlugin()],
169
+ build: {
170
+ lib: {
171
+ entry: resolve(root, options.entry),
172
+ formats: ["iife"],
173
+ name: "kirbyupExport",
174
+ fileName: () => "index.js"
175
+ },
176
+ minify: mode === "production",
177
+ outDir,
178
+ emptyOutDir: false,
179
+ rollupOptions: {
180
+ external: ["vue"],
181
+ output: {
182
+ assetFileNames: "index.[ext]",
183
+ globals: {
184
+ vue: "Vue"
185
+ }
186
+ }
187
+ }
188
+ },
189
+ resolve: {
190
+ alias: {
191
+ "~/": `${aliasDir}/`,
192
+ "@/": `${aliasDir}/`,
193
+ ...alias
194
+ }
195
+ },
196
+ css: {
197
+ postcss: resolvedPostCssConfig
198
+ },
199
+ envPrefix: ["VITE_", "KIRBYUP_"],
200
+ logLevel: "warn"
201
+ };
202
+ try {
203
+ result = await build$1(mergeConfig(defaultConfig, extendViteConfig));
204
+ } catch (error) {
205
+ consola.error("Build failed");
206
+ if (mode === "production") {
207
+ throw error;
208
+ }
209
+ }
210
+ if (result && !options.watch) {
211
+ const { output } = toArray(result)[0];
212
+ for (const { fileName, type, code } of output) {
213
+ printFileInfo(root, outDir, fileName, type, code);
214
+ }
215
+ }
216
+ return result;
217
+ }
218
+ async function resolveOptions(options) {
219
+ if (!options.entry) {
220
+ throw new PrettyError("No input file, try " + cyan(`${name} <path/to/file.js>`));
221
+ }
222
+ if (!existsSync(options.entry)) {
223
+ throw new PrettyError(`Cannot find ${options.entry}`);
224
+ }
225
+ return options;
226
+ }
227
+ async function build(_options) {
228
+ const options = await resolveOptions(_options);
229
+ const loadConfig = createConfigLoader();
230
+ const { config, sources: configSources } = await loadConfig();
231
+ resolvedKirbyupConfig = config;
232
+ try {
233
+ resolvedPostCssConfig = await postcssrc({});
234
+ } catch (err) {
235
+ if (!/No PostCSS Config found/.test(err.message)) {
236
+ throw err;
237
+ }
238
+ resolvedPostCssConfig = {
239
+ plugins: [postcssLogical(), postcssDirPseudoClass()]
240
+ };
241
+ }
242
+ consola.log(green(`${name} v${version}`));
243
+ consola.start("Building " + cyan(options.entry));
244
+ if (options.watch) {
245
+ consola.info("Running in watch mode");
246
+ }
247
+ const debouncedBuild = debouncePromise(async () => {
248
+ viteBuild(options);
249
+ }, 100, handleError);
250
+ const startWatcher = async () => {
251
+ if (!options.watch)
252
+ return;
253
+ const { watch } = await import('chokidar');
254
+ const ignored = [
255
+ "**/{.git,node_modules}/**",
256
+ "index.{css,js}"
257
+ ];
258
+ const watchPaths = typeof options.watch === "boolean" ? dirname(options.entry) : Array.isArray(options.watch) ? options.watch.filter((path) => typeof path === "string") : options.watch;
259
+ consola.info("Watching for changes in " + toArray(watchPaths).map((i) => cyan(i)).join(", "));
260
+ const watcher = watch(watchPaths, {
261
+ ignoreInitial: true,
262
+ ignorePermissionErrors: true,
263
+ ignored
264
+ });
265
+ if (configSources.length) {
266
+ watcher.add(configSources);
267
+ }
268
+ watcher.on("all", async (type, file) => {
269
+ if (configSources.includes(file)) {
270
+ resolvedKirbyupConfig = (await loadConfig()).config;
271
+ consola.info(`${cyan(basename(file))} changed, setting new config`);
272
+ } else {
273
+ consola.log(green(type) + " " + white(dim(file)));
274
+ }
275
+ debouncedBuild();
276
+ });
277
+ };
278
+ await viteBuild(options);
279
+ consola.success("Build successful");
280
+ startWatcher();
281
+ }
282
+
283
+ export { build as b, defineConfig as d, handleError as h, name as n, resolveOptions as r, version as v };
package/dist/cli.d.ts CHANGED
@@ -1 +1 @@
1
- #!/usr/bin/env node
1
+
package/dist/cli.mjs ADDED
@@ -0,0 +1,38 @@
1
+ import { cac } from 'cac';
2
+ import { h as handleError, n as name, b as build, v as version } from './chunks/index.mjs';
3
+ import 'pathe';
4
+ import 'fs';
5
+ import 'vite';
6
+ import 'vite-plugin-vue2';
7
+ import 'magic-string';
8
+ import 'unconfig';
9
+ import 'postcss-load-config';
10
+ import 'postcss-logical';
11
+ import 'postcss-dir-pseudo-class';
12
+ import 'consola';
13
+ import 'colorette';
14
+ import 'fs/promises';
15
+ import 'zlib';
16
+ import 'util';
17
+
18
+ async function main(options = {}) {
19
+ const cli = cac(name);
20
+ cli.command("[file]", "Panel input file", {
21
+ ignoreOptionDefaultValue: true
22
+ }).option("-d, --out-dir <dir>", "Output directory", {
23
+ default: process.cwd()
24
+ }).option("--watch [path]", 'Watch mode, if path is not specified, it watches the folder of the input file. Repeat "--watch" for multiple paths').action(async (file, flags) => {
25
+ Object.assign(options, {
26
+ ...flags
27
+ });
28
+ if (file) {
29
+ options.entry = file;
30
+ }
31
+ await build(options);
32
+ });
33
+ cli.help();
34
+ cli.version(version);
35
+ cli.parse(process.argv, { run: false });
36
+ await cli.runMatchedCommand();
37
+ }
38
+ main().catch(handleError);
package/dist/index.d.ts CHANGED
@@ -1,16 +1,30 @@
1
- import * as rollup from 'rollup';
2
- import { RollupOutput } from 'rollup';
3
- import { MarkRequired } from 'ts-essentials';
1
+ import { AliasOptions, InlineConfig } from 'vite';
4
2
 
5
- declare type MaybeArray<T> = T | Array<T>;
6
- declare type Options = {
3
+ declare type MarkRequired<T, RK extends keyof T> = Exclude<T, RK> & Required<Pick<T, RK>>;
4
+ declare type CliOptions = {
7
5
  entry?: string;
8
6
  outDir?: string;
9
- watch?: MaybeArray<boolean | string>;
7
+ watch?: boolean | string | Array<boolean | string>;
10
8
  };
11
- declare type NormalizedOptions = MarkRequired<Options, 'entry'>;
9
+ declare type ResolvedCliOptions = MarkRequired<CliOptions, 'entry'>;
10
+ interface UserConfig {
11
+ /**
12
+ * Specifies an `Object`, or an `Array` of `Object`,
13
+ * which defines aliases used to replace values in `import` statements.
14
+ * With either format, the order of the entries is important,
15
+ * in that the first defined rules are applied first.
16
+ */
17
+ alias?: AliasOptions;
18
+ /**
19
+ * Extends Vite's configuration. Will be merged with kirbyup's
20
+ * default configuration. Be careful what to extend.
21
+ */
22
+ extendViteConfig?: InlineConfig;
23
+ }
12
24
 
13
- declare function runViteBuild(options: NormalizedOptions): Promise<RollupOutput | RollupOutput[] | rollup.RollupWatcher | undefined>;
14
- declare function build(_options: Options): Promise<void>;
25
+ declare function defineConfig(config: UserConfig): UserConfig;
15
26
 
16
- export { build, runViteBuild };
27
+ declare function resolveOptions(options: CliOptions): Promise<ResolvedCliOptions>;
28
+ declare function build(_options: CliOptions): Promise<void>;
29
+
30
+ export { build, defineConfig, resolveOptions };
package/dist/index.mjs ADDED
@@ -0,0 +1,15 @@
1
+ import 'pathe';
2
+ import 'fs';
3
+ import 'vite';
4
+ import 'vite-plugin-vue2';
5
+ export { b as build, d as defineConfig, r as resolveOptions } from './chunks/index.mjs';
6
+ import 'postcss-load-config';
7
+ import 'postcss-logical';
8
+ import 'postcss-dir-pseudo-class';
9
+ import 'consola';
10
+ import 'colorette';
11
+ import 'magic-string';
12
+ import 'unconfig';
13
+ import 'fs/promises';
14
+ import 'zlib';
15
+ import 'util';
@@ -2,7 +2,7 @@
2
2
  declare type GlobEagerResult = Record<string, {
3
3
  [key: string]: any;
4
4
  }>;
5
- export declare const kirbyup: Readonly<{
5
+ declare const kirbyup: Readonly<{
6
6
  /**
7
7
  * Auto-import Kirby Panel components, will be transformed by
8
8
  * kirbyup's auto import plugin for Vite
@@ -12,4 +12,5 @@ export declare const kirbyup: Readonly<{
12
12
  */
13
13
  import(modules: GlobEagerResult): Record<string, any>;
14
14
  }>;
15
- export {};
15
+
16
+ export { kirbyup };
@@ -7,6 +7,5 @@ const kirbyup = Object.freeze({
7
7
  }, {});
8
8
  }
9
9
  });
10
- export {
11
- kirbyup
12
- };
10
+
11
+ export { kirbyup };
package/package.json CHANGED
@@ -1,30 +1,7 @@
1
1
  {
2
2
  "name": "kirbyup",
3
- "version": "0.20.1",
3
+ "version": "0.22.1",
4
4
  "description": "Zero-config bundler for Kirby Panel plugins",
5
- "files": [
6
- "dist"
7
- ],
8
- "exports": {
9
- ".": {
10
- "require": "./dist/index.js"
11
- },
12
- "./plugin": {
13
- "import": "./dist/client/plugin.js"
14
- }
15
- },
16
- "main": "dist/index.js",
17
- "bin": {
18
- "kirbyup": "dist/cli.js"
19
- },
20
- "types": "dist/index.d.ts",
21
- "engines": {
22
- "node": ">=14"
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/johannschopplich/kirbyup.git"
27
- },
28
5
  "keywords": [
29
6
  "kirby-cms",
30
7
  "kirby-plugin",
@@ -32,54 +9,86 @@
32
9
  "panel",
33
10
  "bundle"
34
11
  ],
12
+ "homepage": "https://github.com/johannschopplich/kirbyup#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/johannschopplich/kirbyup/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/johannschopplich/kirbyup.git"
19
+ },
20
+ "license": "MIT",
35
21
  "author": {
36
22
  "name": "Johann Schopplich",
37
23
  "email": "pkg@johannschopplich.com",
38
24
  "url": "https://johannschopplich.com"
39
25
  },
40
- "license": "MIT",
41
- "bugs": {
42
- "url": "https://github.com/johannschopplich/kirbyup/issues"
26
+ "exports": {
27
+ ".": {
28
+ "require": "./dist/index.cjs",
29
+ "import": "./dist/index.mjs",
30
+ "types": "./dist/index.d.ts"
31
+ },
32
+ "./plugin": {
33
+ "require": "./dist/plugin.cjs",
34
+ "import": "./dist/plugin.mjs",
35
+ "types": "./dist/plugin.d.ts"
36
+ }
37
+ },
38
+ "types": "./dist/index.d.ts",
39
+ "bin": {
40
+ "kirbyup": "./bin/kirbyup.cjs"
41
+ },
42
+ "files": [
43
+ "bin",
44
+ "dist"
45
+ ],
46
+ "engines": {
47
+ "node": ">=14"
43
48
  },
44
- "homepage": "https://github.com/johannschopplich/kirbyup#readme",
45
49
  "scripts": {
46
- "build": "tsup src/node/cli.ts src/node/index.ts --clean --dts && npm run build:client",
47
- "build:client": "esbuild src/client/plugin.ts --format=esm --outdir=dist/client && tsc src/client/plugin.ts --declaration --emitDeclarationOnly --outDir dist/client",
48
- "test": "npm run build && jest",
50
+ "build": "unbuild",
51
+ "stub": "unbuild --stub",
52
+ "test": "vitest",
53
+ "test:update": "vitest -u",
49
54
  "format": "prettier --write \"src/**/*.ts\"",
50
55
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
51
56
  "release": "node scripts/release.js",
52
57
  "prepare": "husky install"
53
58
  },
54
59
  "dependencies": {
55
- "cac": "^6.7.11",
60
+ "cac": "^6.7.12",
56
61
  "chokidar": "^3.5.2",
57
62
  "colorette": "^2.0.16",
58
63
  "consola": "^2.15.3",
59
64
  "pathe": "^0.2.0",
60
- "postcss-dir-pseudo-class": "^6.0.0",
61
- "postcss-logical": "^5.0.0",
62
- "sass": "^1.43.4",
63
- "vite": "^2.6.14",
64
- "vite-plugin-vue2": "^1.9.0",
65
+ "postcss": "^8.4.5",
66
+ "postcss-dir-pseudo-class": "^6.0.2",
67
+ "postcss-load-config": "^3.1.1",
68
+ "postcss-logical": "^5.0.2",
69
+ "sass": "^1.46.0",
70
+ "unconfig": "^0.2.2",
71
+ "vite": "^2.7.10",
72
+ "vite-plugin-vue2": "^1.9.2",
65
73
  "vue": "^2.6.14",
66
74
  "vue-template-compiler": "^2.6.14"
67
75
  },
68
76
  "devDependencies": {
77
+ "@antfu/utils": "^0.4.0",
78
+ "@types/cross-spawn": "^6.0.2",
69
79
  "@types/fs-extra": "^9.0.13",
70
- "@types/jest": "^27.0.2",
71
- "@types/node": "^16.11.7",
72
- "conventional-changelog-cli": "^2.1.1",
73
- "execa": "^5.1.1",
80
+ "@types/node": "^17.0.8",
81
+ "conventional-changelog-cli": "^2.2.2",
82
+ "esno": "^0.13.0",
83
+ "execa": "5.1.1",
74
84
  "fast-glob": "^3.2.7",
75
85
  "fs-extra": "^10.0.0",
76
86
  "husky": "^7.0.4",
77
- "jest": "^27.3.1",
78
- "prettier": "^2.4.1",
87
+ "prettier": "^2.5.1",
79
88
  "prompts": "^2.4.2",
80
- "ts-essentials": "^9.0.0",
81
- "ts-jest": "^27.0.7",
82
- "tsup": "^5.6.0",
83
- "typescript": "^4.4.4"
89
+ "ts-essentials": "^9.1.2",
90
+ "typescript": "^4.5.4",
91
+ "unbuild": "^0.6.7",
92
+ "vitest": "^0.0.134"
84
93
  }
85
94
  }