Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 24 additions & 167 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "mirrow",
"name": "mirrow-mono",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev:compiler": "npx tsx packages/core/src/index.ts",
"build:core": "tsc -p packages/core/tsconfig.json",
"test": "npm run build:core && npm run build:cli && node --test packages/core/test/*.test.js packages/cli/test/*.test.js",
"build:cli": "npm run build --workspace packages/cli"
"build:cli": "npm run build -w mirrow"
},
"private": true,
"workspaces": [
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirrow",
"version": "0.1.4",
"version": "0.1.5",
"description": "",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -14,9 +14,9 @@
"dist"
],
"dependencies": {
"@mirrowjs/core": "^0.1.2",
"commander": "^12.1.0",
"chokidar": "^3.6.0"
"@mirrowjs/core": "^0.1.9",
"chokidar": "^4.0.3",
"commander": "^14.0.1"
},
"devDependencies": {
"@types/node": "^24.5.2"
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { promises as fs } from "node:fs";
import os from "node:os";
import path from "node:path";

import chokidar from "chokidar";

import type * as Chokidar from "chokidar";
import * as chokidar from "chokidar";
import { compile } from "@mirrowjs/core";

export interface CliOptions {
Expand Down Expand Up @@ -191,8 +191,7 @@ export async function watchMirrow(

await runMirrow(options);
console.log(
`Watching ${formatPath(input)} (depth: ${
depth === Infinity ? "unbound" : depth
`Watching ${formatPath(input)} (depth: ${depth === Infinity ? "unbound" : depth
})`
);
console.log("Press Ctrl+C to stop.\n");
Expand All @@ -218,7 +217,8 @@ async function watchDirectory(
const inputRoot = path.resolve(inputDir);
const outputRoot = path.resolve(outputDir);

const watcherOptions: chokidar.WatchOptions = {
const watcherOptions = {
depth: 0,
persistent: true,
ignoreInitial: true,
awaitWriteFinish: {
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"module": "nodenext",
"moduleResolution": "nodenext",
"types": ["node"],
"outDir": "dist"
"outDir": "dist",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["src"]
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mirrowjs/core",
"version": "0.1.8",
"version": "0.1.9",
"description": "Core compiler and parser for the Mirrow DSL",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
Empty file removed test.mirrow
Empty file.