Add license notice in JSON files.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
CismonX 2021-03-23 00:19:48 +08:00
parent 634bac057d
commit 343c6e50d9
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
6 changed files with 28 additions and 6 deletions

View File

@ -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:

View File

@ -1,3 +1,10 @@
/**
* Copyright (C) 2020,2021 CismonX <admin@cismon.net>
*
* 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"

6
package-lock.json generated
View File

@ -1,4 +1,10 @@
{
"_copyrightNotice": [
"Copyright (C) 2020,2021 CismonX <admin@cismon.net>",
"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,

View File

@ -1,4 +1,10 @@
{
"_copyrightNotice": [
"Copyright (C) 2020,2021 CismonX <admin@cismon.net>",
"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",

View File

@ -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

View File

@ -1,3 +1,10 @@
/**
* Copyright (C) 2020,2021 CismonX <admin@cismon.net>
*
* 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",