Skip to content

Commit d4db5bd

Browse files
committed
fix: Convert to ES module
1 parent 8610159 commit d4db5bd

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
File renamed without changes.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"files": [
77
"dist/*"
88
],
9+
"type": "module",
910
"author": {
1011
"email": "[email protected]",
1112
"name": "Ayibatari Ibaba",
@@ -22,7 +23,6 @@
2223
"url": "https://github.com/tariibaba/csv-to-xml-js.git"
2324
},
2425
"main": "dist/main.js",
25-
"module": "dist/module.js",
2626
"types": "dist/types.d.ts",
2727
"license": "MIT",
2828
"devDependencies": {
@@ -31,6 +31,7 @@
3131
"@types/jest": "^29.2.5",
3232
"jest": "^29.3.1",
3333
"parcel": "latest",
34+
"rimraf": "^3.0.2",
3435
"ts-jest": "^29.0.3",
3536
"ts-node": "^10.9.1",
3637
"typescript": "^4.9.4"
@@ -41,10 +42,11 @@
4142
"scripts": {
4243
"test": "jest",
4344
"watch": "parcel watch",
45+
"prebuild": "rimraf dist",
4446
"build": "parcel build",
4547
"prepublish": "yarn build"
4648
},
4749
"np": {
4850
"contents": "dist"
4951
}
50-
}
52+
}

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3057,6 +3057,13 @@ resolve@^1.20.0:
30573057
path-parse "^1.0.7"
30583058
supports-preserve-symlinks-flag "^1.0.0"
30593059

3060+
rimraf@^3.0.2:
3061+
version "3.0.2"
3062+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
3063+
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
3064+
dependencies:
3065+
glob "^7.1.3"
3066+
30603067
safe-buffer@^5.0.1:
30613068
version "5.2.1"
30623069
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"

0 commit comments

Comments
 (0)