fix(root): fix dependencies in packages to avoid building errors (#178)
This commit is contained in:
parent
218eb5ced3
commit
d24c5629d4
@ -11,6 +11,7 @@
|
||||
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nocobase/resourcer": "0.6.0-alpha.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { PageHeader as AntdPageHeader } from 'antd';
|
||||
import { observer, useField } from '@formily/react';
|
||||
import { useDocumentTitle } from '@nocobase/client';
|
||||
import { useDocumentTitle } from '../../../document-title';
|
||||
|
||||
export const Page = (props) => {
|
||||
const { children, ...others } = props;
|
||||
|
@ -2,7 +2,7 @@ import { Field } from '@formily/core';
|
||||
import { useField } from '@formily/react';
|
||||
import { reaction } from '@formily/reactive';
|
||||
import { isArr, isValid, toArr as toArray } from '@formily/shared';
|
||||
import { useAPIClient } from '@nocobase/client';
|
||||
import { useAPIClient } from '../../../api-client';
|
||||
import { UploadChangeParam } from 'antd/lib/upload';
|
||||
import { UploadFile } from 'antd/lib/upload/interface';
|
||||
import { useEffect } from 'react';
|
||||
|
@ -11,6 +11,9 @@
|
||||
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nocobase/acl": "0.6.0-alpha.0",
|
||||
"@nocobase/database": "0.6.0-alpha.0",
|
||||
"@nocobase/server": "0.6.0-alpha.0",
|
||||
"json-templates": "^4.2.0"
|
||||
},
|
||||
"repository": {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import PluginACL from '@nocobase/plugin-acl';
|
||||
import PluginACL from '..';
|
||||
|
||||
const availableActionResource = {
|
||||
name: 'availableActions',
|
||||
|
@ -1,9 +1,9 @@
|
||||
import path from 'path';
|
||||
import { IPlugin } from '@nocobase/server';
|
||||
import { Plugin } from '@nocobase/server';
|
||||
import { afterCreate, afterUpdate, afterDestroy } from './hooks';
|
||||
|
||||
export default {
|
||||
name: 'action-logs',
|
||||
export default class extends Plugin {
|
||||
name: 'action-logs';
|
||||
async load() {
|
||||
const database = this.app.db;
|
||||
await database.import({
|
||||
@ -12,5 +12,5 @@ export default {
|
||||
database.on('afterCreate', afterCreate);
|
||||
database.on('afterUpdate', afterUpdate);
|
||||
database.on('afterDestroy', afterDestroy);
|
||||
},
|
||||
} as IPlugin;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user