diff --git a/packages/core/json-templates/.npmignore b/packages/core/json-template-parser/.npmignore similarity index 100% rename from packages/core/json-templates/.npmignore rename to packages/core/json-template-parser/.npmignore diff --git a/packages/core/json-templates/LICENSE b/packages/core/json-template-parser/LICENSE similarity index 100% rename from packages/core/json-templates/LICENSE rename to packages/core/json-template-parser/LICENSE diff --git a/packages/core/json-templates/README.md b/packages/core/json-template-parser/README.md similarity index 100% rename from packages/core/json-templates/README.md rename to packages/core/json-template-parser/README.md diff --git a/packages/core/json-templates/package.json b/packages/core/json-template-parser/package.json similarity index 100% rename from packages/core/json-templates/package.json rename to packages/core/json-template-parser/package.json diff --git a/packages/core/json-templates/src/__tests__/escape.test.ts b/packages/core/json-template-parser/src/__tests__/escape.test.ts similarity index 100% rename from packages/core/json-templates/src/__tests__/escape.test.ts rename to packages/core/json-template-parser/src/__tests__/escape.test.ts diff --git a/packages/core/json-templates/src/__tests__/parser.test.ts b/packages/core/json-template-parser/src/__tests__/parser.test.ts similarity index 100% rename from packages/core/json-templates/src/__tests__/parser.test.ts rename to packages/core/json-template-parser/src/__tests__/parser.test.ts diff --git a/packages/core/json-templates/src/escape.ts b/packages/core/json-template-parser/src/escape.ts similarity index 100% rename from packages/core/json-templates/src/escape.ts rename to packages/core/json-template-parser/src/escape.ts diff --git a/packages/core/json-templates/src/filters/date.ts b/packages/core/json-template-parser/src/filters/date.ts similarity index 100% rename from packages/core/json-templates/src/filters/date.ts rename to packages/core/json-template-parser/src/filters/date.ts diff --git a/packages/core/json-templates/src/filters/index.ts b/packages/core/json-template-parser/src/filters/index.ts similarity index 100% rename from packages/core/json-templates/src/filters/index.ts rename to packages/core/json-template-parser/src/filters/index.ts diff --git a/packages/core/json-templates/src/index.ts b/packages/core/json-template-parser/src/index.ts similarity index 100% rename from packages/core/json-templates/src/index.ts rename to packages/core/json-template-parser/src/index.ts diff --git a/packages/core/json-templates/src/parser/index.ts b/packages/core/json-template-parser/src/parser/index.ts similarity index 100% rename from packages/core/json-templates/src/parser/index.ts rename to packages/core/json-template-parser/src/parser/index.ts diff --git a/packages/core/json-templates/src/parser/json-template-parser.ts b/packages/core/json-template-parser/src/parser/json-template-parser.ts similarity index 100% rename from packages/core/json-templates/src/parser/json-template-parser.ts rename to packages/core/json-template-parser/src/parser/json-template-parser.ts diff --git a/packages/core/json-templates/src/parser/parse.ts b/packages/core/json-template-parser/src/parser/parse.ts similarity index 100% rename from packages/core/json-templates/src/parser/parse.ts rename to packages/core/json-template-parser/src/parser/parse.ts diff --git a/packages/core/json-templates/src/utils/index.ts b/packages/core/json-template-parser/src/utils/index.ts similarity index 100% rename from packages/core/json-templates/src/utils/index.ts rename to packages/core/json-template-parser/src/utils/index.ts diff --git a/packages/core/json-templates/tsconfig.json b/packages/core/json-template-parser/tsconfig.json similarity index 100% rename from packages/core/json-templates/tsconfig.json rename to packages/core/json-template-parser/tsconfig.json diff --git a/packages/core/utils/src/client.ts b/packages/core/utils/src/client.ts index aa4cb224a1..9ccc5f9176 100644 --- a/packages/core/utils/src/client.ts +++ b/packages/core/utils/src/client.ts @@ -17,7 +17,7 @@ export * from './forEach'; export * from './getValuesByPath'; export * from './handlebars'; export * from './isValidFilter'; -export { parse } from '@nocobase/json-templates'; +export { parse } from '@nocobase/json-template-parser'; export * from './log'; export * from './merge'; export * from './notification'; diff --git a/packages/core/utils/src/index.ts b/packages/core/utils/src/index.ts index 058742bf64..3073b19e3d 100644 --- a/packages/core/utils/src/index.ts +++ b/packages/core/utils/src/index.ts @@ -19,7 +19,7 @@ export * from './forEach'; export * from './fs-exists'; export * from './handlebars'; export * from './isValidFilter'; -export { parse } from '@nocobase/json-templates'; +export { parse } from '@nocobase/json-template-parser'; export * from './koa-multer'; export * from './measure-execution-time'; export * from './merge';