Skip to content

fix: pkg lost #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ node_modules
build
lib
coverage
dist
dist
es
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-tween-one",
"version": "1.5.0",
"version": "1.5.1",
"description": "tween-one anim component for react",
"keywords": [
"react",
Expand All @@ -24,20 +24,22 @@
],
"licenses": "MIT",
"main": "./lib/index",
"entry": {
"rc-tween-one": [
"./assets/index.less",
"./src/index.js"
]
},
"module": "./es/index",
"config": {
"port": 8100
"port": 8100,
"entry": {
"rc-tween-one": [
"./assets/index.less",
"./src/index.js"
]
}
},
"scripts": {
"dist": "rc-tools run dist",
"build": "rc-tools run build",
"gh-pages": "rc-tools run gh-pages",
"start": "rc-tools run server",
"compile": "rc-tools run compile",
"compile": "rc-tools run compile --babel-runtime",
"pub": "rc-tools run pub --babel-runtime",
"lint": "rc-tools run lint",
"karma": "rc-test run karma",
Expand Down
12 changes: 6 additions & 6 deletions index.js → src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// export this package's api
import TweenOne from './src/TweenOne';
import group from './src/TweenOneGroup';
import _easing from './src/easing';
import _plugins from './src/plugins';
import _ticker from './src/ticker';
import TweenOne from './TweenOne';
import group from './TweenOneGroup';
import _easing from './easing';
import _plugins from './plugins';
import _ticker from './ticker';

TweenOne.TweenOneGroup = group;
TweenOne.easing = _easing;
Expand All @@ -18,4 +18,4 @@ export const easing = _easing;

export const plugins = _plugins;

export const ticker = _ticker;
export const ticker = _ticker;
2 changes: 1 addition & 1 deletion tests/tweenOne.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import ReactDom from 'react-dom';
import PropTypes from 'prop-types';
import expect from 'expect.js';
import Tween from '../index';
import Tween from '../src';
import ticker from '../src/ticker';
import TestUtils from 'react-dom/test-utils';
import { checkStyleName } from 'style-utils';
Expand Down
2 changes: 1 addition & 1 deletion tests/tweenOneGroup.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import ReactDom from 'react-dom';
import PropTypes from 'prop-types';
import expect from 'expect.js';
import { TweenOneGroup } from '../index';
import { TweenOneGroup } from '../src';
import TestUtils from 'react-dom/test-utils';

describe('rc-tween-one-group', () => {
Expand Down