- (Fix) handle dynamic import with static path
- (Fix) join
data
fromcreateReadStream
with array rather than assign to string
- (Fix) Handle
.jsx
and.mjs
also
- (Fix) Remove faulty
postinstall
command
- (Fix) Read the proper code structure to know which part of import/export to update
- (Feat) Append
.js
extension to directory with type declaration/definitions only - (Refactor) Removed functionality to append
.js
tomjs
files, since typescript compiler force us to append.mjs
extensions
- (Fix) Append
.js
extension tomjs
files
- (Fix) Remove accidentally-committed temp files
- (Fix) Move
typescript
fromdevDependencies
todependencies
- (Fix) Parse array of value with space
- (Fix) Properly parse token of
=
, so--dir build
becomes--dir=build
internally
- (Fix) Accept token of
=
, so--dir=build
and--dir build
is the same
- (Fix) To be able to use on Windows
- (Fix) Add relative paths to
package.json
exports
- (Feat) Remove
@typescript-eslint/typescript-estree
, just usetsc
to produce AST and manipulate import/export
- (Feat) Remove 'readline' and use raw output for log
Num. (File Updated) - (SUCCEED or FAILED)
- (Fix) Remove
dts
folder and createdts
folders forcjs
andmjs
folder
- (Fix) Auto detect whether a file imported/exported is with
.js
or.mjs
extension, so there is no need to specify what extension to be added
- (Chore) Remove useless log
- (Fix) Create
Progress
instance when there is at least one file to change
- (Feat) Remove
console-table-printer
and replace it with manual progress log
- (Fix) Optionally target
mjs
orjs
file, defaults tojs
file if parameters are not pass into
- (Chore) Remove unnecessary log
- (Feat) Provide API function
parseConfig
&tsAddJsExtension
- (Fix) Relative import
.
can be detected
- (Fix) README JS code block render
- (Fix) Remove
/
from file path that ends with/
as it cannot be detected as a folder - (Chore) Improve README
- (Chore) Remove
parse-dont-validate
as parsing can be done manually
- (Fix) README JS code block render
- (Chore) Simplify some code
- (Chore) Remove
tsbuild-config
from build
- (Feat) Auto add
/index.js
for import/export statement as we can omitindex
at the end of import/export - (Feat) Show import/export that has changed, can optionally turn it off as it's on by default
- (Fix) Read all javascript files to make sure relative imported file is JavaScript file before adding
.js
extension - (Feat) Allow import from different root folder, for example, it is possible to add
.js
extension for imported JavaScript files fromcommon
intosrc
folder
- (Fix) Merge PR
https://github.com/P-YNPM/ts-add-js-extension/pull/2
to addExportAllDeclaration
to handle additional export JavaScript
- (Feat) Made write file asynchronous to speed up writing
- (Fix!) Removed minification, perform only single function -> Add .js extension to each relative import/export statement
- (Chore) Change file in bin folder to JavaScript file and changed to import, not require
- (Chore) Updated parse-dont-validate package version in package.json
- (Feat) Added main entry point
- (Feat) Added minification and remove comment option based on AST
- (Chore) Added Git URL
- (Feat) Initial public release