Skip to content

Commit

Permalink
build: core code upgrade to v1.7.16
Browse files Browse the repository at this point in the history
  • Loading branch information
buuing committed Jan 3, 2022
1 parent d373a2a commit 0f2c1aa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
9 changes: 9 additions & 0 deletions packages/core/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
[
"@babel/preset-env", {
"modules": false
}
]
]
}
11 changes: 0 additions & 11 deletions packages/core/babel.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lucky-canvas",
"version": "1.7.14",
"version": "1.7.16",
"description": "一个基于原生 js 的(大转盘 / 九宫格 / 老虎机)抽奖插件",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export { default as LuckyGrid } from './lib/grid'
export { default as SlotMachine } from './lib/slot'
export { cutRound, opacity } from './utils/image'

export type { default as LuckyWheelConfig } from './types/wheel'
export type { default as LuckyGridConfig } from './types/grid'
export type { default as SlotMachineConfig } from './types/slot'
// export type { default as LuckyWheelConfig } from './types/wheel'
// export type { default as LuckyGridConfig } from './types/grid'
// export type { default as SlotMachineConfig } from './types/slot'
2 changes: 1 addition & 1 deletion packages/core/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,4 +757,4 @@ declare const cutRound: (img: ImgType, radius: number) => ImgType;
*/
declare const opacity: (img: ImgType, opacity: number) => ImgType;

export { LuckyGrid, LuckyGridConfig, LuckyWheel, LuckyWheelConfig, SlotMachine, SlotMachineConfig, cutRound, opacity };
export { LuckyGrid, LuckyWheel, SlotMachine, cutRound, opacity };

0 comments on commit 0f2c1aa

Please sign in to comment.