From 81f2fb5aa90541897716edf1c6f62e0f6a52b666 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 14 Mar 2024 17:50:17 +0100 Subject: [PATCH] Move manifest.json --- packages/string-templates/package.json | 3 +-- packages/string-templates/scripts/gen-collection-info.ts | 2 +- packages/string-templates/src/index.ts | 2 +- packages/string-templates/{ => src}/manifest.json | 0 packages/string-templates/tsconfig.json | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) rename packages/string-templates/{ => src}/manifest.json (100%) diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json index 7e67612205..03e3bf5fa8 100644 --- a/packages/string-templates/package.json +++ b/packages/string-templates/package.json @@ -16,8 +16,7 @@ }, "files": [ "dist", - "src", - "manifest.json" + "src" ], "scripts": { "build": "rollup -c", diff --git a/packages/string-templates/scripts/gen-collection-info.ts b/packages/string-templates/scripts/gen-collection-info.ts index ed57fe7fae..3f583d59d2 100644 --- a/packages/string-templates/scripts/gen-collection-info.ts +++ b/packages/string-templates/scripts/gen-collection-info.ts @@ -22,7 +22,7 @@ const COLLECTIONS = [ "object", "uuid", ] -const FILENAME = join(__dirname, "..", "manifest.json") +const FILENAME = join(__dirname, "..", "src", "manifest.json") const outputJSON = {} const ADDED_HELPERS = { date: { diff --git a/packages/string-templates/src/index.ts b/packages/string-templates/src/index.ts index 0ec8fdd425..3f54cd17c5 100644 --- a/packages/string-templates/src/index.ts +++ b/packages/string-templates/src/index.ts @@ -14,7 +14,7 @@ import { convertHBSBlock } from "./conversion" import { setJSRunner, removeJSRunner } from "./helpers/javascript" import { helpersToRemoveForJs } from "./helpers/list" -import manifest from "../manifest.json" +import manifest from "./manifest.json" import { ProcessOptions } from "./types" export { setJSRunner, setOnErrorLog } from "./helpers/javascript" diff --git a/packages/string-templates/manifest.json b/packages/string-templates/src/manifest.json similarity index 100% rename from packages/string-templates/manifest.json rename to packages/string-templates/src/manifest.json diff --git a/packages/string-templates/tsconfig.json b/packages/string-templates/tsconfig.json index 4b10f1ecbb..2fa760d011 100644 --- a/packages/string-templates/tsconfig.json +++ b/packages/string-templates/tsconfig.json @@ -1,7 +1,7 @@ { "include": ["src/**/*"], "compilerOptions": { - "rootDir": ".", + "declaration": true, "target": "es6", "moduleResolution": "node", "lib": ["dom"],