Skip to content
Snippets Groups Projects
Commit b60708e7 authored by Benedikt's avatar Benedikt
Browse files

added file for npm release

parent d2eeb40e
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ This project is licensed under the [LGPL-2.1](../LICENSE) License.
You will be able to install the library via npm in near future:
```bash
npm install dsi-units-js-lib
npm install dsiunits-js
```
Or clone the repository and bundle the code with your preferred bundler (Webpack, Rollup, etc.).
......
This diff is collapsed.
{
"name": "dsiunits",
"version": "1.0.0",
"name": "dsiunits-js",
"version": "0.9.0",
"type": "module",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"scripts": {
"build": "rollup -c",
"test": "jest"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@rollup/plugin-commonjs": "^21.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"babel-jest": "^27.0.0",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3"
"jest-environment-jsdom": "^28.1.3",
"rollup": "^2.79.2"
}
}
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
export default {
input: 'src/index.js', // Entry point (see below)
output: [
{
file: 'dist/index.esm.js',
format: 'esm',
sourcemap: true
},
{
file: 'dist/index.cjs.js',
format: 'cjs',
sourcemap: true
}
],
plugins: [
resolve(),
commonjs()
]
};
// src/index.js
export { DSIUnit } from "./dsiUnit.js";
export { DSIUnitInput } from "./dsiUnitInput.js";
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment