diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 2fe7d51..0000000 --- a/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org - -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_style = space -indent_size = 2 -insert_final_newline = true -max_line_length = 100 -quote_type = single -trim_trailing_whitespace = true - -[*.{md,markdown}] -trim_trailing_whitespace = false diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7eea626..aa06cc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,13 +15,13 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' diff --git a/.github/workflows/bump-version-and-publish.yml b/.github/workflows/bump-version-and-publish.yml index a4798f6..82c5bda 100644 --- a/.github/workflows/bump-version-and-publish.yml +++ b/.github/workflows/bump-version-and-publish.yml @@ -27,12 +27,12 @@ jobs: steps: - name: Check out source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'npm' - name: Install npm packages diff --git a/.github/workflows/publish-dev-release.yml b/.github/workflows/publish-dev-release.yml index 74a1eb2..25cdf52 100644 --- a/.github/workflows/publish-dev-release.yml +++ b/.github/workflows/publish-dev-release.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '18' + node-version: '20' cache: 'npm' - name: Install npm packages diff --git a/.gitignore b/.gitignore index 1d76eb8..daf7211 100644 --- a/.gitignore +++ b/.gitignore @@ -30,5 +30,8 @@ yarn-error.log* .eslintcache + # npm publish artifects /dist +/example/dist + diff --git a/.node-version b/.node-version deleted file mode 100644 index 3c03207..0000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -18 diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 3c03207..0000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -18 diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index dcda9f1..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project -adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 216c6e2..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Media.Monks - -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/package.json b/package.json index dee6e10..984efe1 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,17 @@ "repository": "git@github.com:mediamonks/panorama-renderer.git", "author": "Reinder Nijhoff ", "license": "MIT", - "exports": "./dist/index.js", "type": "module", + "main": "./dist/panorama-renderer.umd.cjs", + "module": "./dist/panorama-renderer.js", + "types": "./index.d.ts", + "exports": { + ".": { + "import": "./dist/panorama-renderer.js", + "require": "./dist/panorama-renderer.umd.cjs", + "types": "./index.d.ts" + } + }, "files": [ "dist/**/*", "README.md" diff --git a/tsconfig.build.json b/tsconfig.build.json deleted file mode 100644 index 2a7bb81..0000000 --- a/tsconfig.build.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "allowJs": false, - "declaration": true - }, - "include": ["./src/**/*"] -}