From 343c6e50d982a38ad78aa4b4e0fabe40b6564324 Mon Sep 17 00:00:00 2001 From: CismonX Date: Tue, 23 Mar 2021 00:19:48 +0800 Subject: [PATCH] Add license notice in JSON files. --- LICENSE_NOTICE.md | 4 ---- language-configuration.json | 7 +++++++ package-lock.json | 6 ++++++ package.json | 6 ++++++ scripts/package.sh | 4 ++-- tsconfig.json | 7 +++++++ 6 files changed, 28 insertions(+), 6 deletions(-) diff --git a/LICENSE_NOTICE.md b/LICENSE_NOTICE.md index 4818d3c..61287ce 100644 --- a/LICENSE_NOTICE.md +++ b/LICENSE_NOTICE.md @@ -15,10 +15,6 @@ file format restrictions. ```text assets/texinfo.png -language-configuration.json -package.json -package-lock.json -tsconfig.json ``` They should be treated as if they each contains the following text: diff --git a/language-configuration.json b/language-configuration.json index 5fb8b1a..e2d41c4 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -1,3 +1,10 @@ +/** + * Copyright (C) 2020,2021 CismonX + * + * Copying and distribution of this file, with or without modification, are + * permitted in any medium without royalty, provided the copyright notice and + * this notice are preserved. This file is offered as-is, without any warranty. + */ { "comments": { "lineComment": "@c" diff --git a/package-lock.json b/package-lock.json index 318acb5..a0e5194 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,4 +1,10 @@ { + "_copyrightNotice": [ + "Copyright (C) 2020,2021 CismonX ", + "Copying and distribution of this file, with or without modification,", + "are permitted in any medium without royalty, provided the copyright notice and this notice are preserved.", + "This file is offered as-is, without any warranty." + ], "name": "texinfo", "version": "0.1.4", "lockfileVersion": 1, diff --git a/package.json b/package.json index a97a46a..d2f1304 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,10 @@ { + "_copyrightNotice": [ + "Copyright (C) 2020,2021 CismonX ", + "Copying and distribution of this file, with or without modification,", + "are permitted in any medium without royalty, provided the copyright notice and this notice are preserved.", + "This file is offered as-is, without any warranty." + ], "name": "texinfo", "displayName": "Texinfo Language Support", "description": "Texinfo language support for Visual Studio Code", diff --git a/scripts/package.sh b/scripts/package.sh index b39df46..118b717 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -11,9 +11,9 @@ BACKUP_SUFFIX=vsce-pre-package-backup JSON_FILES=(package.json language-configuration.json) for file in ${JSON_FILES[@]}; do mv $file $file.$BACKUP_SUFFIX - json -j0 -f $file.$BACKUP_SUFFIX > $file + json5 -o $file $file.$BACKUP_SUFFIX done -json -j0 -I -e 'delete this.eslintConfig; delete this.devDependencies;' -f package.json +json -j0 -I -e 'delete this.eslintConfig; delete this.devDependencies; delete this._copyrightNotice' -f package.json vsce package --baseContentUrl=`json -f package.json repository.url` for file in ${JSON_FILES[@]}; do mv $file.$BACKUP_SUFFIX $file diff --git a/tsconfig.json b/tsconfig.json index 984ba79..9c7cd6f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,10 @@ +/** + * Copyright (C) 2020,2021 CismonX + * + * Copying and distribution of this file, with or without modification, are + * permitted in any medium without royalty, provided the copyright notice and + * this notice are preserved. This file is offered as-is, without any warranty. + */ { "compilerOptions": { "module": "CommonJS",