update publish process
This commit is contained in:
parent
df80938190
commit
bd271e3952
@ -2,8 +2,7 @@
|
||||
"name": "yjs",
|
||||
"version": "13.0.0-67",
|
||||
"description": "A framework for real-time p2p shared editing on any data",
|
||||
"main": "./y.node.js",
|
||||
"browser": "./y.js",
|
||||
"main": "./build/node/index.js",
|
||||
"module": "./src/index.js",
|
||||
"scripts": {
|
||||
"test": "npm run lint",
|
||||
@ -16,10 +15,10 @@
|
||||
"postversion": "npm run dist"
|
||||
},
|
||||
"files": [
|
||||
"y.*",
|
||||
"src/*",
|
||||
".esdoc.json",
|
||||
"docs/*"
|
||||
"docs/*",
|
||||
"build/*"
|
||||
],
|
||||
"standard": {
|
||||
"ignore": [
|
||||
|
@ -5,11 +5,11 @@ import commonjs from 'rollup-plugin-commonjs'
|
||||
var pkg = require('./package.json')
|
||||
|
||||
export default {
|
||||
input: 'src/Y.dist.js',
|
||||
input: 'src/index.js',
|
||||
name: 'Y',
|
||||
sourcemap: true,
|
||||
output: {
|
||||
file: 'y.js',
|
||||
file: 'build/umd/index.js',
|
||||
format: 'umd'
|
||||
},
|
||||
plugins: [
|
||||
@ -20,21 +20,6 @@ export default {
|
||||
}),
|
||||
commonjs(),
|
||||
babel(),
|
||||
uglify({
|
||||
mangle: {
|
||||
except: ['YMap', 'Y', 'YArray', 'YText', 'YXmlHook', 'YXmlFragment', 'YXmlElement', 'YXmlEvent', 'YXmlText', 'YEvent', 'YArrayEvent', 'YMapEvent', 'Type', 'Delete', 'ItemJSON', 'ItemString', 'Item']
|
||||
},
|
||||
output: {
|
||||
comments: function (node, comment) {
|
||||
var text = comment.value
|
||||
var type = comment.type
|
||||
if (type === 'comment2') {
|
||||
// multiline comment
|
||||
return /@license/i.test(text)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
banner: `
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user