Skip to content

Commit

Permalink
fix: 修改包名并构建成功
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Jan 12, 2021
1 parent 252283e commit 61ae828
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
plugins: [
['@babel/plugin-transform-react-jsx', {
runtime: 'automatic',
importSource: 'f2-jsx'
importSource: '@ali/f2-jsx'
}]
]
};
2 changes: 1 addition & 1 deletion packages/components/src/chart/chart.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import F2 from '@antv/f2';
import ComponentFactory from './componentFactory';
import { render } from '../../../jsx/src/index';
import { render } from '@ali/f2-jsx';

class Chart {

Expand Down
2 changes: 1 addition & 1 deletion packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "f2-jsx",
"jsxImportSource": "@ali/f2-jsx",
"esModuleInterop": true
}
}
2 changes: 1 addition & 1 deletion packages/fund-components/src/legend/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// @ts-nocheck
import { withLegend } from 'f2-components';
import { withLegend } from '@ali/f2-components';
import LegendView from './legendView';

export { withLegend, LegendView };
Expand Down
2 changes: 1 addition & 1 deletion packages/fund-components/src/weaverLine/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { Line, Area } from 'f2-components';
import { Line, Area } from '@ali/f2-components';

export default (props: any) => {
const { position, growth } = props;
Expand Down
2 changes: 1 addition & 1 deletion packages/fund-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "f2-jsx"
"jsxImportSource": "@ali/f2-jsx"
}
}
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"module": "es/index.js",
"dependencies": {
"@antv/f2": "^3.8.1",
"@ali/f2-jsx": "*"
"@ali/f2-jsx": "*",
"@ali/f2-components": "*"
},
"devDependencies": {
"react": "^17.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, Children } from 'react';
import Chart from '../../components/src/index';
import Chart from '@ali/f2-components';

export default ({ canvasRef, pixelRatio, data, children }: any) => {

Expand Down

0 comments on commit 61ae828

Please sign in to comment.