chore(emit-async): remove build step

It also helps with compatibility with Native ESM for default exports.
This commit is contained in:
Julien Fontanet 2021-05-19 14:57:58 +02:00
parent a64af4da7c
commit 2e49c685cc
6 changed files with 3 additions and 18 deletions

View File

@ -1 +0,0 @@
module.exports = require('../../@xen-orchestra/babel-config')(require('./package.json'))

View File

@ -1 +0,0 @@
../../scripts/babel-eslintrc.js

View File

@ -1,4 +1,4 @@
export default function emitAsync(event) {
module.exports = function emitAsync(event) {
let opts
let i = 1

View File

@ -16,27 +16,13 @@
"url": "https://vates.fr"
},
"preferGlobal": false,
"main": "dist/",
"browserslist": [
">2%"
],
"engines": {
"node": ">=6"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"cross-env": "^7.0.2",
"rimraf": "^3.0.0"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "yarn run clean",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build",
"postversion": "npm publish"
}
}

View File

@ -1,5 +1,5 @@
const assert = require('assert')
const emitAsync = require('@xen-orchestra/emit-async').default
const emitAsync = require('@xen-orchestra/emit-async')
const EventEmitter = require('events')
const { createLogger } = require('@xen-orchestra/log')

View File

@ -33,6 +33,7 @@
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- @xen-orchestra/emit-async minor
- @xen-orchestra/defined patch
- xo-collection minor
- @xen-orchestra/log patch