diff --git a/cli/cli.js b/cli/cli.js index 1ac53f708..6858da042 100755 --- a/cli/cli.js +++ b/cli/cli.js @@ -98,6 +98,12 @@ async function createJsFileWithRullup(sourceFileWithPath, rollupTarget) { babel({ babelHelpers: "bundled", extensions: [".ts", ".js", ".jsx", ".es6", ".es", ".mjs"], + presets: ["@babel/preset-typescript"], + plugins: [ + "near-sdk-js/lib/build-tools/include-bytes.js", + "near-sdk-js/lib/build-tools/near-bindgen-exporter.js", + ["@babel/plugin-proposal-decorators", { version: "legacy" }], + ], }), ], }); diff --git a/examples/babel.config.json b/examples/babel.config.json deleted file mode 100644 index e1d155602..000000000 --- a/examples/babel.config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - "near-sdk-js/lib/build-tools/include-bytes", - "near-sdk-js/lib/build-tools/near-bindgen-exporter", - ["@babel/plugin-proposal-decorators", { "version": "legacy" }] - ], - "presets": ["@babel/preset-typescript"] -} diff --git a/tests/babel.config.json b/tests/babel.config.json deleted file mode 100644 index e1d155602..000000000 --- a/tests/babel.config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "plugins": [ - "near-sdk-js/lib/build-tools/include-bytes", - "near-sdk-js/lib/build-tools/near-bindgen-exporter", - ["@babel/plugin-proposal-decorators", { "version": "legacy" }] - ], - "presets": ["@babel/preset-typescript"] -}