Skip to content

Commit

Permalink
chore : update rollup config
Browse files Browse the repository at this point in the history
SIKKA-6593[in progress]
  • Loading branch information
Mansourkira committed Mar 19, 2024
1 parent 7940578 commit cae7deb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hajar",
"version": "1.1.66",
"version": "1.1.67",
"description": "Toolkit to create SaaS applications",
"author": "Sikka Software <contact@sikka.io> (http://sikka.io)",
"license": "MIT",
Expand Down
18 changes: 1 addition & 17 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ const babel = require("@rollup/plugin-babel");
const { terser } = require("@wwa/rollup-plugin-terser");
const pkg = require("./package.json");
const json = require("@rollup/plugin-json");
const replace = require("@rollup/plugin-replace");
const path = require("path");

const LIBRARY_NAME = "Hajar";
const EXTERNAL = [];
Expand All @@ -12,7 +10,7 @@ const banner = `/*!
* ${pkg.name}
* ${pkg.description}
*
* @version v${pkg.version}
* @version v${pkg.version}
* @author ${pkg.author}
* @homepage ${pkg.homepage}
* @repository ${pkg.repository.url}
Expand Down Expand Up @@ -50,20 +48,6 @@ const makeConfig = (env = "development") => {
},
],
plugins: [
replace({
preventAssignment: true,
values: {
'"./core/init.js"': JSON.stringify(
path.resolve(__dirname, "./www/src/@sikka/hajar/core/init.js")
),
'"./core/auth/index.js"': JSON.stringify(
path.resolve(__dirname, "./www/src/@sikka/hajar/core/auth/index.js")
),
'"../../../../package.json"': JSON.stringify(
path.resolve(__dirname, "./package.json")
),
},
}),
json(),
babel({
babelHelpers: "bundled",
Expand Down
1 change: 0 additions & 1 deletion www/src/@sikka/hajar/core/auth/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ async function login(email, password) {
// mongoose,
} = initHajarModule;
const { secret } = initHajarModule;

const user = await User.findOne({ email });

if (!user) {
Expand Down

0 comments on commit cae7deb

Please sign in to comment.