Skip to content

Commit

Permalink
fix: use ESM build format
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicou committed May 12, 2023
1 parent 3b3e9df commit d9f83f0
Showing 3 changed files with 795 additions and 911 deletions.
5 changes: 5 additions & 0 deletions extension.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import externals from 'rollup-plugin-node-externals'

export default {
plugins: [externals()]
};
32 changes: 12 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -20,45 +20,37 @@
"type": "hook",
"path": "dist/index.mjs",
"source": "src/index.ts",
"host": "^10.0.0"
"host": "^10.1.0"
},
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"main": "./dist/index.mjs",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub",
"build": "directus-extension build",
"dev": "directus-extension build -w --no-minify",
"lint": "eslint .",
"release": "semantic-release"
},
"devDependencies": {
"@bicou/semantic-release": "^1.0.1",
"@directus/api": "^10.0.0",
"@directus/extensions-sdk": "^10.0.0",
"@directus/api": "^10.1.0",
"@directus/extensions-sdk": "^10.1.0",
"@directus/tsconfig": "^0.0.7",
"@types/lodash-es": "^4.14.194",
"@types/node": "^18.16.2",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"@types/lodash-es": "^4.17.7",
"@types/node": "^18.16.8",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"axios": "~1.3.6",
"eslint": "^8.38.0",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"form-data": "4.0.0",
"lodash-es": "4.17.21",
"prettier": "^2.8.8",
"rollup-plugin-node-externals": "^6.0.0",
"semantic-release": "^21.0.1",
"typescript": "^5.0.4",
"unbuild": "^1.2.1"
"semantic-release": "^21.0.2",
"typescript": "^5.0.4"
},
"peerDependencies": {
"@directus/api": "^10.0.0",
Loading

0 comments on commit d9f83f0

Please sign in to comment.