1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Update entrypoints

This commit is contained in:
Adria Navarro 2024-02-21 20:44:15 +01:00
parent 8503af6729
commit 6b3c4ec651
3 changed files with 5 additions and 34 deletions

View file

@ -3,15 +3,12 @@
"type": "module",
"version": "0.0.0",
"description": "Handlebars wrapper for Budibase templating.",
"main": "src/index.js",
"main": "dist/index.cjs",
"module": "src/index.mjs",
"license": "MPL-2.0",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./src/index.js",
"import": "./src/index.mjs"
},
".": "./src/index.mjs",
"./package.json": "./package.json",
"./test/utils": "./test/utils.js"
},

View file

@ -10,11 +10,11 @@ const production = !process.env.ROLLUP_WATCH
export default [
{
input: "src/index.mjs",
input: "src/index.js",
output: {
sourcemap: !production,
format: "esm",
file: "./dist/bundle.mjs",
format: "cjs",
file: "./dist/bundle.cjs",
},
plugins: [
resolve({

View file

@ -1,26 +0,0 @@
/**
* ES6 entrypoint for rollup
*/
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"