From d07d5e49807ec29c4c30459ada56b76a083a6b90 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Mon, 23 Jan 2023 15:07:46 -0500 Subject: [PATCH] build(repo): Add `build:tarball` scripts (#21) --- .craft.yml | 15 +++++++++++++++ package.json | 3 ++- packages/rrdom/LICENSE | 14 ++++++++++++++ packages/rrdom/package.json | 3 ++- packages/rrweb-player/LICENSE | 14 ++++++++++++++ packages/rrweb-player/package.json | 3 ++- packages/rrweb-snapshot/LICENSE | 14 ++++++++++++++ packages/rrweb-snapshot/package.json | 3 ++- packages/rrweb/LICENSE | 14 ++++++++++++++ packages/rrweb/package.json | 3 ++- 10 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 .craft.yml create mode 100644 packages/rrdom/LICENSE create mode 100644 packages/rrweb-player/LICENSE create mode 100644 packages/rrweb-snapshot/LICENSE create mode 100644 packages/rrweb/LICENSE diff --git a/.craft.yml b/.craft.yml new file mode 100644 index 0000000000..6032f44ad7 --- /dev/null +++ b/.craft.yml @@ -0,0 +1,15 @@ +github: + owner: getsentry + repo: rrweb +changelogPolicy: simple +preReleaseCommand: bash scripts/craft-pre-release.sh +requireNames: + - /^sentry-internal-rrweb-snapshot-.*\.tgz$/ + - /^sentry-internal-rrweb-player-.*\.tgz$/ + - /^sentry-internal-rrweb-.*\.tgz$/ + - /^sentry-internal-rrdom-.*\.tgz$/ +targets: + - name: github + includeNames: /^sentry-.*.tgz$/ + - name: npm + includeNames: /^sentry-.*.tgz$/ diff --git a/package.json b/package.json index 42e45ff27c..dffd879233 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "test:watch": "yarn lerna run test:watch --parallel", "dev": "yarn lerna run dev --parallel", "repl": "cd packages/rrweb && npm run repl", - "postinstall": "node node_modules/puppeteer/install.js" + "postinstall": "node node_modules/puppeteer/install.js", + "build:tarball": "yarn lerna run build:tarball" }, "volta": { "node": "12.22.12", diff --git a/packages/rrdom/LICENSE b/packages/rrdom/LICENSE new file mode 100644 index 0000000000..d11896ba11 --- /dev/null +++ b/packages/rrdom/LICENSE @@ -0,0 +1,14 @@ +Copyright (c) 2023 Sentry (https://sentry.io) and individual contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/rrdom/package.json b/packages/rrdom/package.json index eb5d4b435e..9df6631c12 100644 --- a/packages/rrdom/package.json +++ b/packages/rrdom/package.json @@ -6,7 +6,8 @@ "bundle": "rollup --config", "bundle:es-only": "cross-env ES_ONLY=true rollup --config", "test": "jest", - "prepublish": "npm run bundle" + "prepublish": "npm run bundle", + "build:tarball": "npm pack" }, "keywords": [ "rrweb", diff --git a/packages/rrweb-player/LICENSE b/packages/rrweb-player/LICENSE new file mode 100644 index 0000000000..d11896ba11 --- /dev/null +++ b/packages/rrweb-player/LICENSE @@ -0,0 +1,14 @@ +Copyright (c) 2023 Sentry (https://sentry.io) and individual contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/rrweb-player/package.json b/packages/rrweb-player/package.json index 903868609d..1db1cf2223 100644 --- a/packages/rrweb-player/package.json +++ b/packages/rrweb-player/package.json @@ -33,7 +33,8 @@ "prepublishOnly": "yarn build", "start": "sirv public", "validate": "svelte-check", - "prepublish": "yarn build" + "prepublish": "yarn build", + "build:tarball": "npm pack" }, "description": "rrweb's replayer UI", "main": "lib/index.js", diff --git a/packages/rrweb-snapshot/LICENSE b/packages/rrweb-snapshot/LICENSE new file mode 100644 index 0000000000..d11896ba11 --- /dev/null +++ b/packages/rrweb-snapshot/LICENSE @@ -0,0 +1,14 @@ +Copyright (c) 2023 Sentry (https://sentry.io) and individual contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/rrweb-snapshot/package.json b/packages/rrweb-snapshot/package.json index f9b8c94a4c..581047c23e 100644 --- a/packages/rrweb-snapshot/package.json +++ b/packages/rrweb-snapshot/package.json @@ -11,7 +11,8 @@ "bundle:es-only": "cross-env ES_ONLY=true rollup --config", "dev": "yarn bundle:es-only --watch", "typings": "tsc -d --declarationDir typings", - "prepublish": "npm run typings && npm run bundle" + "prepublish": "npm run typings && npm run bundle", + "build:tarball": "npm pack" }, "repository": { "type": "git", diff --git a/packages/rrweb/LICENSE b/packages/rrweb/LICENSE new file mode 100644 index 0000000000..d11896ba11 --- /dev/null +++ b/packages/rrweb/LICENSE @@ -0,0 +1,14 @@ +Copyright (c) 2023 Sentry (https://sentry.io) and individual contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/rrweb/package.json b/packages/rrweb/package.json index 5fd24ff309..d4ef31c5ed 100644 --- a/packages/rrweb/package.json +++ b/packages/rrweb/package.json @@ -14,7 +14,8 @@ "bundle": "rollup --config", "typings": "tsc -d --declarationDir typings", "check-types": "tsc -noEmit", - "prepublish": "npm run typings && npm run bundle" + "prepublish": "npm run typings && npm run bundle", + "build:tarball": "npm pack" }, "repository": { "type": "git",