Skip to content

Commit

Permalink
chore: _spec, _sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Feb 5, 2025
1 parent aed7795 commit dc8bfc7
Show file tree
Hide file tree
Showing 22 changed files with 46 additions and 30 deletions.
7 changes: 7 additions & 0 deletions .changeset/nine-geckos-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@lingo.dev/_spec": patch
"lingo.dev": patch
"@lingo.dev/_sdk": patch
---

publish deps
4 changes: 2 additions & 2 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
- [#419](https://github.com/lingodotdev/lingo.dev/pull/419) [`a45feb1`](https://github.com/lingodotdev/lingo.dev/commit/a45feb1d747f8fa32c42c1726953a04c174e754a) Thanks [@maxprilutskiy](https://github.com/maxprilutskiy)! - Replexica is now Lingo.dev! 🎉

- Updated dependencies [[`a45feb1`](https://github.com/lingodotdev/lingo.dev/commit/a45feb1d747f8fa32c42c1726953a04c174e754a)]:
- @lingo.dev/~spec@0.24.1
- @lingo.dev/_spec@0.24.1
- @lingo.dev/[email protected]
- @lingo.dev/~sdk@0.7.11
- @lingo.dev/_sdk@0.7.11
7 changes: 5 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.74.1",
"description": "Lingo.dev CLI",
"private": false,
"publishConfig": {
"access": "public"
},
"type": "module",
"sideEffects": false,
"exports": {
Expand Down Expand Up @@ -90,8 +93,8 @@
"zod": "^3.24.1"
},
"devDependencies": {
"@lingo.dev/~sdk": "workspace:*",
"@lingo.dev/~spec": "workspace:*",
"@lingo.dev/_sdk": "workspace:*",
"@lingo.dev/_spec": "workspace:*",
"@types/cors": "^2.8.17",
"@types/diff": "^7.0.0",
"@types/express": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/cmd/cleanup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18nConfig, resolveOverridenLocale } from "@lingo.dev/~spec";
import { I18nConfig, resolveOverridenLocale } from "@lingo.dev/_spec";
import { Command } from "interactive-commander";
import _ from "lodash";
import { getConfig } from "../utils/config";
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/cli/cmd/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bucketTypeSchema, I18nConfig, localeCodeSchema, resolveOverridenLocale } from "@lingo.dev/~spec";
import { ReplexicaEngine } from "@lingo.dev/~sdk";
import { bucketTypeSchema, I18nConfig, localeCodeSchema, resolveOverridenLocale } from "@lingo.dev/_spec";
import { ReplexicaEngine } from "@lingo.dev/_sdk";
import { Command } from "interactive-commander";
import Z from "zod";
import _ from "lodash";
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/cmd/init.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { InteractiveCommand, InteractiveOption } from "interactive-commander";
import Ora from "ora";
import { getConfig, saveConfig } from "../utils/config";
import { defaultConfig, LocaleCode, resolveLocaleCode, bucketTypes } from "@lingo.dev/~spec";
import { defaultConfig, LocaleCode, resolveLocaleCode, bucketTypes } from "@lingo.dev/_spec";
import fs from "fs";
import { spawn } from "child_process";
import _ from "lodash";
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/cmd/lockfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Command } from "interactive-commander";
import Z from "zod";
import Ora from "ora";
import { createLockfileHelper } from "../utils/lockfile";
import { bucketTypeSchema, resolveOverridenLocale } from "@lingo.dev/~spec";
import { bucketTypeSchema, resolveOverridenLocale } from "@lingo.dev/_spec";
import { getConfig } from "../utils/config";
import createBucketLoader from "../loaders";
import { getBuckets } from "../utils/buckets";
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/cmd/show/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Command } from "interactive-commander";
import _ from "lodash";
import fs from "fs";
import path from "path";
import { defaultConfig } from "@lingo.dev/~spec";
import { defaultConfig } from "@lingo.dev/_spec";

export default new Command()
.command("config")
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/cmd/show/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Ora from "ora";
import { getConfig } from "../../utils/config";
import { CLIError } from "../../utils/errors";
import { getBuckets } from "../../utils/buckets";
import { resolveOverridenLocale } from "@lingo.dev/~spec";
import { resolveOverridenLocale } from "@lingo.dev/_spec";

export default new Command()
.command("files")
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/cmd/show/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Command } from "interactive-commander";
import _ from "lodash";
import Z from "zod";
import Ora from "ora";
import { localeCodes } from "@lingo.dev/~spec";
import { localeCodes } from "@lingo.dev/_spec";
import { CLIError } from "../../utils/errors";

export default new Command()
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/loaders/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Z from "zod";
import { bucketTypeSchema } from "@lingo.dev/~spec";
import { bucketTypeSchema } from "@lingo.dev/_spec";
import { composeLoaders } from "./_utils";
import createJsonLoader from "./json";
import createFlatLoader from "./flat";
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/cli/utils/buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import _ from "lodash";
import path from "path";
import * as glob from "glob";
import { CLIError } from "./errors";
import { I18nConfig, resolveOverridenLocale, BucketItem } from "@lingo.dev/~spec";
import { bucketTypeSchema } from "@lingo.dev/~spec";
import { I18nConfig, resolveOverridenLocale, BucketItem } from "@lingo.dev/_spec";
import { bucketTypeSchema } from "@lingo.dev/_spec";
import Z from "zod";

export function getBuckets(i18nConfig: I18nConfig) {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from "lodash";
import fs from "fs";
import path from "path";
import { I18nConfig, parseI18nConfig } from "@lingo.dev/~spec";
import { I18nConfig, parseI18nConfig } from "@lingo.dev/_spec";

export function getConfig(resave = true): I18nConfig | null {
const configFilePath = _getConfigFilePath();
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/sdk/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@lingo.dev/~sdk";
export * from "@lingo.dev/_sdk";
2 changes: 1 addition & 1 deletion packages/cli/src/spec/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@lingo.dev/~spec";
export * from "@lingo.dev/_spec";
2 changes: 1 addition & 1 deletion packages/cli/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
bundle: true,
sourcemap: true,
external: ["readline/promises"],
noExternal: ["@lingo.dev/~sdk", "@lingo.dev/~spec"],
noExternal: ["@lingo.dev/_sdk", "@lingo.dev/_spec"],
outExtension: (ctx) => ({
js: ctx.format === "cjs" ? ".cjs" : ".mjs",
}),
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @lingo.dev/~sdk
# @lingo.dev/\_sdk

## 0.7.12

Expand All @@ -7,7 +7,7 @@
- [`6281dbd`](https://github.com/lingodotdev/lingo.dev/commit/6281dbd96bd5cfe54f194a6a1d055c8255a250de) Thanks [@maxprilutskiy](https://github.com/maxprilutskiy)! - fix sdk/spec exported types

- Updated dependencies [[`6281dbd`](https://github.com/lingodotdev/lingo.dev/commit/6281dbd96bd5cfe54f194a6a1d055c8255a250de)]:
- @lingo.dev/~spec@0.24.2
- @lingo.dev/_spec@0.24.2

## 0.7.11

Expand All @@ -16,7 +16,7 @@
- [#419](https://github.com/lingodotdev/lingo.dev/pull/419) [`a45feb1`](https://github.com/lingodotdev/lingo.dev/commit/a45feb1d747f8fa32c42c1726953a04c174e754a) Thanks [@maxprilutskiy](https://github.com/maxprilutskiy)! - Replexica is now Lingo.dev! 🎉

- Updated dependencies [[`a45feb1`](https://github.com/lingodotdev/lingo.dev/commit/a45feb1d747f8fa32c42c1726953a04c174e754a)]:
- @lingo.dev/~spec@0.24.1
- @lingo.dev/_spec@0.24.1

## 0.7.10

Expand Down
7 changes: 5 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@lingo.dev/~sdk",
"name": "@lingo.dev/_sdk",
"version": "0.7.12",
"description": "Lingo.dev JS SDK",
"private": false,
"publishConfig": {
"access": "public"
},
"type": "module",
"sideEffects": false,
"types": "build/index.d.ts",
Expand All @@ -21,7 +24,7 @@
"license": "Apache-2.0",
"dependencies": {
"@paralleldrive/cuid2": "^2.2.2",
"@lingo.dev/~spec": "workspace:*",
"@lingo.dev/_spec": "workspace:*",
"jsdom": "^25.0.1",
"typescript": "^5.7.2",
"vitest": "^2.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Z from "zod";
import { LocaleCode, localeCodeSchema } from "@lingo.dev/~spec";
import { LocaleCode, localeCodeSchema } from "@lingo.dev/_spec";
import { createId } from "@paralleldrive/cuid2";

const engineParamsSchema = Z.object({
Expand Down
2 changes: 1 addition & 1 deletion packages/spec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @lingo.dev/~spec
# @lingo.dev/\_spec

## 0.24.2

Expand Down
5 changes: 4 additions & 1 deletion packages/spec/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@lingo.dev/~spec",
"name": "@lingo.dev/_spec",
"version": "0.24.2",
"description": "Lingo.dev open specification",
"private": false,
"publishConfig": {
"access": "public"
},
"type": "module",
"sideEffects": false,
"types": "build/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

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

0 comments on commit dc8bfc7

Please sign in to comment.