Skip to content

Commit

Permalink
private testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Katli95 committed Dec 9, 2024
1 parent a5a2f88 commit 08e5798
Showing 6 changed files with 24 additions and 9 deletions.
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -13,12 +13,12 @@ module.exports = [
'@nx/enforce-module-boundaries': [
'error',
{
enforceBuildableLibDependency: true,
allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?js$'],
// enforceBuildableLibDependency: true,
// allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?js$'],
depConstraints: [
{
sourceTag: '*',
onlyDependOnLibsWithTags: ['*'],
sourceTag: 'cart',
onlyDependOnLibsWithTags: ['utilities'],
},
],
},
3 changes: 3 additions & 0 deletions packages/cart/package.json
Original file line number Diff line number Diff line change
@@ -13,6 +13,9 @@
"sourceRoot": "packages/cart/src",
"projectType": "library",
"name": "cart",
"tags": [
"cart"
],
"targets": {
"test": {
"executor": "@nx/vite:test",
12 changes: 9 additions & 3 deletions packages/cart/src/lib/cart.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { utilities } from '@here/utilities';
// import { utilities } from '@here/utilities';
import { privatePrivate } from '@here/utilities/src/private/private';

export function cart(): string {
const a = utilities();
return a + ' cart';
const a = privatePrivate();
console.log(a);

// const b = utilities();
// console.log(b);

return 'as';
}
3 changes: 3 additions & 0 deletions packages/utilities/package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,9 @@
"sourceRoot": "packages/utilities/src",
"projectType": "library",
"name": "utilities",
"tags": [
"utilities"
],
"targets": {
"test": {
"executor": "@nx/vite:test",
6 changes: 4 additions & 2 deletions packages/utilities/src/lib/utilities.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export function utilities(): string {
return 'utilities';
import { privatePrivate } from '../private/private';

export function utilities() {
return privatePrivate();
}
1 change: 1 addition & 0 deletions packages/utilities/src/private/private.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const privatePrivate = () => 'asd';

0 comments on commit 08e5798

Please sign in to comment.