chore(emit-async): remove build step
It also helps with compatibility with Native ESM for default exports.
This commit is contained in:
parent
a64af4da7c
commit
2e49c685cc
@ -1 +0,0 @@
|
|||||||
module.exports = require('../../@xen-orchestra/babel-config')(require('./package.json'))
|
|
@ -1 +0,0 @@
|
|||||||
../../scripts/babel-eslintrc.js
|
|
@ -1,4 +1,4 @@
|
|||||||
export default function emitAsync(event) {
|
module.exports = function emitAsync(event) {
|
||||||
let opts
|
let opts
|
||||||
let i = 1
|
let i = 1
|
||||||
|
|
@ -16,27 +16,13 @@
|
|||||||
"url": "https://vates.fr"
|
"url": "https://vates.fr"
|
||||||
},
|
},
|
||||||
"preferGlobal": false,
|
"preferGlobal": false,
|
||||||
"main": "dist/",
|
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
">2%"
|
">2%"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6"
|
"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": {
|
"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"
|
"postversion": "npm publish"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const emitAsync = require('@xen-orchestra/emit-async').default
|
const emitAsync = require('@xen-orchestra/emit-async')
|
||||||
const EventEmitter = require('events')
|
const EventEmitter = require('events')
|
||||||
const { createLogger } = require('@xen-orchestra/log')
|
const { createLogger } = require('@xen-orchestra/log')
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
>
|
>
|
||||||
> In case of conflict, the highest (lowest in previous list) `$version` wins.
|
> In case of conflict, the highest (lowest in previous list) `$version` wins.
|
||||||
|
|
||||||
|
- @xen-orchestra/emit-async minor
|
||||||
- @xen-orchestra/defined patch
|
- @xen-orchestra/defined patch
|
||||||
- xo-collection minor
|
- xo-collection minor
|
||||||
- @xen-orchestra/log patch
|
- @xen-orchestra/log patch
|
||||||
|
Loading…
Reference in New Issue
Block a user