From 98019b499efa7ba3411c73da95992e92545f1ca3 Mon Sep 17 00:00:00 2001 From: ishiko Date: Sat, 18 Nov 2023 23:04:30 +0800 Subject: [PATCH] Chore/rollup (#47) * pref/remove umd * 3.1.0-beta5 --- package.json | 2 +- rollup.config.js | 13 +------------ src/fsrs/default.ts | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index fa8eea7..8b469c6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/rollup.config.js b/rollup.config.js index fe7ffdc..b930e51 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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]; diff --git a/src/fsrs/default.ts b/src/fsrs/default.ts index ebbccc0..386fbef 100644 --- a/src/fsrs/default.ts +++ b/src/fsrs/default.ts @@ -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,