Mark as module

This commit is contained in:
Adria Navarro 2024-02-21 17:57:58 +01:00
parent efef47b77e
commit e0873b359c
2 changed files with 22 additions and 21 deletions

View File

@ -1,5 +1,6 @@
{
"name": "@budibase/string-templates",
"type": "module",
"version": "0.0.0",
"description": "Handlebars wrapper for Budibase templating.",
"main": "src/index.js",

View File

@ -1,26 +1,26 @@
import * as templates from "./index.js"
/**
* ES6 entrypoint for rollup
*/
export const isValid = templates.isValid
export const makePropSafe = templates.makePropSafe
export const getManifest = templates.getManifest
export const isJSBinding = templates.isJSBinding
export const encodeJSBinding = templates.encodeJSBinding
export const decodeJSBinding = templates.decodeJSBinding
export const processStringSync = templates.processStringSync
export const processObjectSync = templates.processObjectSync
export const processString = templates.processString
export const processObject = templates.processObject
export const doesContainStrings = templates.doesContainStrings
export const doesContainString = templates.doesContainString
export const disableEscaping = templates.disableEscaping
export const findHBSBlocks = templates.findHBSBlocks
export const convertToJS = templates.convertToJS
export const setJSRunner = templates.setJSRunner
export const setOnErrorLog = templates.setOnErrorLog
export const FIND_ANY_HBS_REGEX = templates.FIND_ANY_HBS_REGEX
export const helpersToRemoveForJs = templates.helpersToRemoveForJs
export {
isValid,
makePropSafe,
getManifest,
isJSBinding,
encodeJSBinding,
decodeJSBinding,
processStringSync,
processObjectSync,
processString,
processObject,
doesContainStrings,
doesContainString,
disableEscaping,
findHBSBlocks,
convertToJS,
setJSRunner,
setOnErrorLog,
FIND_ANY_HBS_REGEX,
helpersToRemoveForJs,
} from "./index.js"
export * from "./errors.js"