Skip to content

Commit

Permalink
Chore/rollup (#47)
Browse files Browse the repository at this point in the history
* pref/remove umd

* 3.1.0-beta5
  • Loading branch information
ishiko732 authored Nov 18, 2023
1 parent 9c2fd07 commit 98019b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-fsrs",
"version": "3.1.0-beta4",
"version": "3.1.0-beta5",
"description": "ts-fsrs is a TypeScript package used to implement the Free Spaced Repetition Scheduler (FSRS) algorithm. It helps developers apply FSRS to their flashcard applications, thereby improving the user learning experience.",
"main": "dist/ts-fsrs.js",
"module": "dist/ts-fsrs.mjs",
Expand Down
13 changes: 1 addition & 12 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,7 @@ const builds = {
format: "esm",
env: "production",
external: ["seedrandom", "dotenv"],
},
"ts-fsrs.umd": {
entry: resolve("src/fsrs/index.ts"),
dest: (name) => `dist/${name}.js`,
format: "umd",
env: "production",
globals: {
seedrandom: "seedrandom",
dotenv:"dotenv",
},
external: ["seedrandom", "dotenv"],
},
}
};
const getConfig = (name) => {
const opts = builds[name];
Expand Down
2 changes: 1 addition & 1 deletion src/fsrs/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const default_w = envParams.FSRS_W || [
];
export const default_enable_fuzz = envParams.FSRS_ENABLE_FUZZ || false;

export const FSRSVersion: string = "3.1.0-beta4";
export const FSRSVersion: string = "3.1.0-beta5";

export const generatorParameters = (
props?: Partial<FSRSParameters>,
Expand Down

0 comments on commit 98019b4

Please sign in to comment.