Add license notice in JSON files.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
634bac057d
commit
343c6e50d9
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue