Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
build: add umd dist
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed May 21, 2021
1 parent 9c0df46 commit d8d1e19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

Once you are setup, you check out the codebase documentation to learn more!

- [`WORKFLOW.md`](../codebase/WORKFLOW.md) - How to get started with iterating, building, and ad-hoc testing Lucia.
- [`CORE.md`](../codebase/CORE.md) - Understanding the internals and how the core is structured.
- [Workflow Documentation](https://github.com/aidenybai/lucia/wiki/Workflow-Documentation) - How to get started with iterating, building, and ad-hoc testing Lucia.
- [Core Documentation](https://github.com/aidenybai/lucia/wiki/Core-Documentation) - Understanding the internals and how the core is structured.

## Next Steps + Useful Info:

Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"name": "lucia",
"version": "0.6.1-0",
"description": "3kb library for tiny web apps",
"main": "dist/lucia.cjs.js",
"main": "dist/lucia.umd.js",
"module": "dist/lucia.esm.js",
"browser": "dist/lucia.min.js",
"types": "dist/types/index.d.ts",
"scripts": {
"dev": "sh scripts/dev.sh",
"build": "rm -rf dist && rollup -c",
"lint": "eslint src/**",
"lint:fix": "eslint src/** --fix",
"cleanup": "prettier --write src --parser typescript",
"test": "jest --silent --runInBand",
"release": "sh scripts/release.sh",
Expand All @@ -23,8 +22,8 @@
"exports": {
"require": "./dist/lucia.cjs.js",
"import": "./dist/lucia.esm.js",
"node": "./dist/lucia.cjs.js",
"default": "./dist/lucia.cjs.js"
"node": "./dist/lucia.umd.js",
"default": "./dist/lucia.umd.js"
},
"sideEffects": false,
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export default [
output: ['dist/lucia.cjs.js'],
format: 'cjs',
}),
build('./src/index.ts', {
output: ['dist/lucia.umd.js'],
format: 'umd',
}),
build('./src/browser.ts', {
output: ['dist/lucia.js', 'dist/lucia.min.js'],
format: 'iife',
Expand Down

0 comments on commit d8d1e19

Please sign in to comment.