Skip to content

Commit

Permalink
Add fileTransformer.js and remove "type" field from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
infysumanta committed Feb 17, 2024
1 parent ce92838 commit f60ab4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/fileTransformer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path')

module.exports = {
process(src, filename, config, options) {
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';'
},
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.0.2",
"description": "A Paypal SDK for Paypal v1 and v2 Rest Apis",
"exports": "./dist/index.js",
"type": "module",
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
Expand Down

0 comments on commit f60ab4f

Please sign in to comment.