Skip to content

Commit

Permalink
Use rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
atesgoral committed Aug 7, 2021
1 parent 7a8e332 commit c8cc75c
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
27 changes: 22 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
{
"name": "@atesgoral/acb",
"version": "0.0.1",
"version": "0.0.2",
"description": "Adobe Photoshop Color Book (ACB) encoder and decoder",
"keywords": ["color", "book", "acb", "photoshop", "palette", "stream", "encode", "decode", "parse", "format"],
"main": "index.js",
"type": "module",
"keywords": [
"color",
"book",
"acb",
"photoshop",
"palette",
"stream",
"encode",
"decode",
"parse",
"format"
],
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"files": [
"dist"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "rollup --config"
},
"repository": {
"type": "git",
Expand All @@ -20,5 +34,8 @@
"homepage": "https://github.com/atesgoral/acb#readme",
"dependencies": {
"stream-parser": "^0.3.1"
},
"devDependencies": {
"rollup": "^2.56.0"
}
}
10 changes: 10 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pkg from './package.json';

export default {
input: 'src/index.js',
external: ['stream-parser'],
output: [
{ file: pkg.main, format: 'cjs' },
{ file: pkg.module, format: 'es' }
]
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,23 @@ debug@2:
dependencies:
ms "2.0.0"

fsevents@~2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==

[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=

rollup@^2.56.0:
version "2.56.0"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.56.0.tgz#daa832955d2b58f1ed52a3c4c85b7d1adaf076d0"
integrity sha512-weEafgbjbHCnrtJPNyCrhYnjP62AkF04P0BcV/1mofy1+gytWln4VVB1OK462cq2EAyWzRDpTMheSP/o+quoiA==
optionalDependencies:
fsevents "~2.3.2"

stream-parser@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/stream-parser/-/stream-parser-0.3.1.tgz#1618548694420021a1182ff0af1911c129761773"
Expand Down

0 comments on commit c8cc75c

Please sign in to comment.