This release contains only internal changes. The most notable is that now instead of including the whole node_modules
folder, only a single file JavaScript file is distributed, which the result of compiling the TypeScript source code and bundling all run-time dependencies.
All (Internal) changes since v1.0.6:
-
[.editorconfig]: Enable
trim_trailing_whitespace
-
[package.json]: Add
@vercel/ncc@^0.27.0
dev dependency -
[build]: Replace
node_modules
with a single-file bundle produced byncc
Detailed description of changes:
-
Update the
build
script inpackage.json
so that it builds and "links" the TypeScript code along with all of its (transitive) dependencies in a singleindex.js
file using@vercel/ncc
. -
Add / copy
scripts/{Invoke-7zdec.ps1,externals/7zdec.exe}
fromnode_modules/@actions/tool-cache/scripts
as its needed by the aforementioned dependency on Windows and it used to be included in thenode_modules
folder which will be deleted by the next commit. -
Change the
main
file inpackage.json
andaction.yml
todist/index.js
.ncc
allows only the out dir can be specified - the filename is alwaysindex.js
. -
Add
lib/
anddist/*
to .gitingore, but excludedist/index.js
from the list so it will be committed. -
Delete the
lib/
folder -
Add the
dist/index.js
file produced by runningnpm run build
. -
Add a
.gitattributes
file in order to set markdist/**
asbinary
for git diff and merge purposes. A wildcard is used as a sourcemap file could also be included later if necessary, which should also be considered a "binary" file. -
Update
.gitignore
to the latest version from here:https://github.com/github/gitignore/blob/master/Node.gitignore
-
Set the
target
intsconfig.json
toes2017
, which is supported by current Node.js version - v12, as should make for cleaner generated "down-leveled" code as it has native async/await suppor
-
-
[node_modules]: Delete the folder from git
-
[package.json]: Upgrade dependencies to their latest available versions
-
[ci]: Verify that
dist/index.js
is correctly generated -
[package.json]: Bump the version to
1.1.0
And also update thedescription
field.