Skip to content

Commit

Permalink
chore: rm unuse code & replace alias path
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Jun 21, 2024
1 parent 3ada439 commit 3b5e61a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-chicken-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sellerartifact/accesscontrol': patch
---

chore: rm unuse code & replace alias path
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sellerartifact/accesscontrol",
"version": "2.3.2",
"version": "2.3.4",
"types": "./dist/types/index.d.ts",
"main": "./dist/lib/index.js",
"module": "./dist/es/index.js",
Expand All @@ -22,7 +22,7 @@
"pre": "modern pre",
"change-status": "modern change-status",
"gen-release-note": "modern gen-release-note",
"release": "modern release",
"release": "modern build && modern release",
"new": "modern new",
"upgrade": "modern upgrade",
"test": "modern test",
Expand Down
8 changes: 4 additions & 4 deletions tests/ac.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable max-lines */
import { AccessControl } from '../src/index';
import { IQueryInfo, AccessControlError } from '../src/core';
import { utils, RESERVED_KEYWORDS, Grants } from '../src/utils';
// test helper
import { helper } from './helper';
import { IQueryInfo, AccessControlError } from '@/core/index';
import { utils, RESERVED_KEYWORDS, Grants } from '@/utils';
// test helper
import AccessControl from '@/index';

describe('Test Suite: AccessControl', () => {
// grant list fetched from DB (to be converted to a valid grants object)
Expand Down
4 changes: 2 additions & 2 deletions tests/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AccessControl } from '../src/index';
import { AccessControlError } from '../src/core';
import { AccessControlError } from '@/core/index';
import { AccessControl } from '@/index';

export const helper = {
expectACError(fn: any, errMsg?: string) {
Expand Down
6 changes: 0 additions & 6 deletions tests/index.test.ts

This file was deleted.

0 comments on commit 3b5e61a

Please sign in to comment.