diff --git a/package.json b/package.json index 80bf08b94..4d13ef525 100644 --- a/package.json +++ b/package.json @@ -24,9 +24,23 @@ "./dist/*.css": "./dist/*.css", "./src/stylesheets/*.scss": "./src/stylesheets/*.scss" }, - "files": ["*.md", "dist", "lib", "es", "src/stylesheets"], - "sideEffects": ["**/*.css"], - "keywords": ["react", "datepicker", "calendar", "date", "react-component"], + "files": [ + "*.md", + "dist", + "lib", + "es", + "src" + ], + "sideEffects": [ + "**/*.css" + ], + "keywords": [ + "react", + "datepicker", + "calendar", + "date", + "react-component" + ], "repository": { "type": "git", "url": "git://github.com/Hacker0x01/react-datepicker.git" @@ -126,7 +140,10 @@ "prepare": "husky" }, "lint-staged": { - "*.{js,jsx,ts,tsx,json,css,scss,md}": ["prettier --write", "git add"] + "*.{js,jsx,ts,tsx,json,css,scss,md}": [ + "prettier --write", + "git add" + ] }, "packageManager": "yarn@4.7.0" } diff --git a/rollup.config.mjs b/rollup.config.mjs index 32ae6c49c..61933821a 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -41,6 +41,7 @@ const migrateRollup2to3OutputOptions = { /** @type {import('rollup').RollupOptions} */ const config = { input: "src/index.tsx", + sourcemap: true, output: [ { file: pkg.unpkg, @@ -50,11 +51,12 @@ const config = { banner, ...migrateRollup2to3OutputOptions, plugins: [terser()], + sourcemap: true, }, { file: pkg.unpkg.replace(".min.js", ".js"), format: "umd", - sourcemap: "inline", + sourcemap: true, name: "DatePicker", globals, banner, @@ -63,7 +65,7 @@ const config = { { file: pkg.main, format: "cjs", - sourcemap: "inline", + sourcemap: true, name: "DatePicker", banner, ...migrateRollup2to3OutputOptions, @@ -71,7 +73,7 @@ const config = { { file: pkg.module, format: "es", - sourcemap: "inline", + sourcemap: true, banner, ...migrateRollup2to3OutputOptions, },