Clean
This commit is contained in:
parent
190903cbed
commit
6bc5bf5be1
|
@ -7,11 +7,11 @@ module.exports = {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
/^@budibase\/[^/]+\/.*$/.test(importPath) &&
|
/^@budibase\/[^/]+\/.*$/.test(importPath) &&
|
||||||
!["@budibase/backend-core/tests","@budibase/string-templates/js-helpers"].includes(importPath)
|
importPath !== "@budibase/backend-core/tests"
|
||||||
) {
|
) {
|
||||||
context.report({
|
context.report({
|
||||||
node,
|
node,
|
||||||
message: `Importing from @budibase is not allowed, except for @budibase/backend-core/tests and @budibase/string-templates/js-helpers.`,
|
message: `Importing from @budibase is not allowed, except for @budibase/backend-core/tests.`,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,6 @@
|
||||||
import { getJsHelperList } from "@budibase/string-templates/js-helpers"
|
const {
|
||||||
|
getJsHelperList,
|
||||||
|
} = require("../../../../string-templates/src/helpers/list.js")
|
||||||
|
|
||||||
const helpers = getJsHelperList()
|
const helpers = getJsHelperList()
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
"import": "./dist/bundle.mjs"
|
"import": "./dist/bundle.mjs"
|
||||||
},
|
},
|
||||||
"./package.json": "./package.json",
|
"./package.json": "./package.json",
|
||||||
"./js-helpers": "./src/helpers/list.js",
|
|
||||||
"./test/utils": "./test/utils.js"
|
"./test/utils": "./test/utils.js"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|
Loading…
Reference in New Issue