fix(root): fix dependencies in packages to avoid building errors (#178)

This commit is contained in:
Junyi 2022-02-02 19:08:33 +08:00 committed by GitHub
parent 218eb5ced3
commit d24c5629d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 8 deletions

View File

@ -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",

View File

@ -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;

View File

@ -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';

View File

@ -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": {

View File

@ -1,4 +1,4 @@
import PluginACL from '@nocobase/plugin-acl';
import PluginACL from '..';
const availableActionResource = {
name: 'availableActions',

View File

@ -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;
}
};