Skip to content

Commit

Permalink
chore: align file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstroschein committed Jan 16, 2025
1 parent 6697aa7 commit 311e39b
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion inlang/packages/paraglide-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"build": "npm run env-variables && tsc --build",
"test": "npm run env-variables && tsc --noEmit && vitest run --coverage ./src/**/*",
"test:watch": "npm run env-variables && vitest --watch ./src/**/*",
"env-variables": "node ./src/services/env-variables/createIndexFile.js",
"env-variables": "node ./src/services/env-variables/create-index-file.js",
"lint": "eslint ./src --fix",
"format": "prettier ./src --write",
"clean": "rm -rf ./dist ./node_modules",
Expand Down
2 changes: 1 addition & 1 deletion inlang/packages/paraglide-js/src/cli/steps/run-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { CliStep } from "../utils.js";
import path from "node:path";
import { writeOutput } from "../../services/file-handling/write-output.js";
import fs from "node:fs";
import { compileProject } from "../../compiler/compileProject.js";
import { compileProject } from "../../compiler/compile-project.js";

export const runCompiler: CliStep<
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { test, expect } from "vitest";
import { compileBundle } from "./compileBundle.js";
import { compileBundle } from "./compile-bundle.js";
import type { BundleNested } from "@inlang/sdk";

test("compiles as ts", async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Bundle, BundleNested, Message } from "@inlang/sdk";
import { compileMessage } from "./compileMessage.js";
import { compileMessage } from "./compile-message.js";
import type { Registry } from "./registry.js";
import { jsIdentifier } from "../services/codegen/identifier.js";
import { isValidJSIdentifier } from "../services/valid-js-identifier/index.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { it, expect } from "vitest";
import { compileMessage } from "./compileMessage.js";
import { compileMessage } from "./compile-message.js";
import type { Declaration, Message, Variant } from "@inlang/sdk";
import { DEFAULT_REGISTRY } from "./registry.js";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Declaration, Message, Variant } from "@inlang/sdk";
import type { Registry } from "./registry.js";
import { compilePattern } from "./compilePattern.js";
import { compilePattern } from "./compile-pattern.js";
import type { Compiled } from "./types.js";
import { doubleQuote } from "../services/codegen/quotes.js";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { it, expect } from "vitest";
import { compilePattern } from "./compilePattern.js";
import { compilePattern } from "./compile-pattern.js";
import { DEFAULT_REGISTRY } from "./registry.js";
import type { Pattern } from "@inlang/sdk";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Pattern } from "@inlang/sdk";
import { escapeForTemplateLiteral } from "../services/codegen/escape.js";
import { backtick } from "../services/codegen/quotes.js";
import { compileExpression } from "./compileExpression.js";
import { compileExpression } from "./compile-expression.js";
import type { Compiled } from "./types.js";
import type { Registry } from "./registry.js";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Pattern,
VariableReference,
} from "@inlang/sdk";
import { compileProject, type CompilerOptions } from "./compileProject.js";
import { compileProject, type CompilerOptions } from "./compile-project.js";
import virtual from "@rollup/plugin-virtual";
import { rolldown } from "rolldown";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { compileBundle } from "./compileBundle.js";
import { compileBundle } from "./compile-bundle.js";
import { DEFAULT_REGISTRY } from "./registry.js";
import { selectBundleNested, type InlangProject } from "@inlang/sdk";
import { lookup } from "../services/lookup.js";
Expand Down
2 changes: 1 addition & 1 deletion inlang/packages/paraglide-js/src/compiler/compile.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { loadProjectFromDirectory } from "@inlang/sdk";
import path from "node:path";
import { ENV_VARIABLES } from "../services/env-variables/index.js";
import { compileProject, type CompilerOptions } from "./compileProject.js";
import { compileProject, type CompilerOptions } from "./compile-project.js";
import { writeOutput } from "../services/file-handling/write-output.js";
import {
getLocalAccount,
Expand Down
10 changes: 5 additions & 5 deletions inlang/packages/paraglide-js/src/compiler/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export type { CompilerArgs } from "./compile.js";
export type { CompilerOptions } from "./compileProject.js";
export type { CompilerOptions } from "./compile-project.js";
export { compile } from "./compile.js";
export { compileProject } from "./compileProject.js";
export { compileBundle } from "./compileBundle.js";
export { compileMessage } from "./compileMessage.js";
export { compilePattern } from "./compilePattern.js";
export { compileProject } from "./compile-project.js";
export { compileBundle } from "./compile-bundle.js";
export { compileMessage } from "./compile-message.js";
export { compilePattern } from "./compile-pattern.js";
export { writeOutput } from "../services/file-handling/write-output.js";
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from "vitest";
import { generateLocaleModules } from "./locale-modules.js";
import type { Bundle, Message, ProjectSettings } from "@inlang/sdk";
import type { CompiledBundleWithMessages } from "../compileBundle.js";
import type { CompiledBundleWithMessages } from "../compile-bundle.js";

test("should emit per locale message files", () => {
const bundles: CompiledBundleWithMessages[] = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ProjectSettings } from "@inlang/sdk";
import type { CompiledBundleWithMessages } from "../compileBundle.js";
import type { CompiledBundleWithMessages } from "../compile-bundle.js";
import { jsIdentifier } from "../../services/codegen/identifier.js";
import { createRuntime } from "../runtime/create-runtime.js";
import { createRegistry } from "../registry.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from "vitest";
import { generateMessageModules } from "./message-modules.js";
import type { Bundle, Message, ProjectSettings } from "@inlang/sdk";
import type { CompiledBundleWithMessages } from "../compileBundle.js";
import type { CompiledBundleWithMessages } from "../compile-bundle.js";

test("should emit per locale message files", () => {
const resources: CompiledBundleWithMessages[] = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ProjectSettings } from "@inlang/sdk";
import type { CompiledBundleWithMessages } from "../compileBundle.js";
import type { CompiledBundleWithMessages } from "../compile-bundle.js";
import { createRuntime } from "../runtime/create-runtime.js";
import { createRegistry } from "../registry.js";
import { jsIdentifier } from "../../services/codegen/identifier.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { KEYWORDS } from "./reservedWords.js";
import { KEYWORDS } from "./reserved-words.js";

/**
* Checks if a string is a valid JS identifier.
Expand Down

0 comments on commit 311e39b

Please sign in to comment.