From 244797abe70274d6b652cae83967cbb952ffd87a Mon Sep 17 00:00:00 2001 From: Doridian Date: Sat, 2 Mar 2024 10:02:50 -0800 Subject: [PATCH] Make sure we bundle the license for Lua, always --- LICENSE | 14 ++++++++++++++ package.json | 7 +++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 6f9eeec..a542415 100644 --- a/LICENSE +++ b/LICENSE @@ -19,3 +19,17 @@ 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. + + + + + +This software uses Lua, which is also distributed under the MIT License (https://www.lua.org/license.html): + +Copyright © 1994–2023 Lua.org, PUC-Rio. + +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 c29b00d..18c82f6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "files": [ "README.md", "LICENSE", - "dist/*", + "dist/luajs.wasm", + "dist/luajs.mjs", + "dist/luajs.d.cts", + "dist/luajs.d.mts", "util/loader_mjs.mjs", "util/loader_mjs.d.mts", "util/loader_cjs.cjs", @@ -21,7 +24,7 @@ "type": "module", "scripts": { "clean": "emmake make clean && rm -rf ./dist && tsc --build --clean && cd src/ && tsc --build --clean && cd ..", - "build": "mkdir -p dist && cp -f src/luajs.d.ts dist/luajs.d.mts && cp -f src/luajs.d.ts dist/luajs.d.cts && cd src/ && tsc && cd .. && tsc && emmake make install", + "build": "mkdir -p dist && cp -f LICENSE dist/LICENSE && cp -f src/luajs.d.ts dist/luajs.d.mts && cp -f src/luajs.d.ts dist/luajs.d.cts && cd src/ && tsc && cd .. && tsc && emmake make install", "lint": "echo 'Lint not set up yet'", "fmt": "echo 'Format not set up yet'", "test": "npm run build && npm run testOnly",