Skip to content

Commit

Permalink
packages: update the package.json to be importable as esm from node 17
Browse files Browse the repository at this point in the history
  • Loading branch information
merryman committed Apr 15, 2022
1 parent f575d1a commit e82fb9a
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 18 deletions.
1 change: 1 addition & 0 deletions lively-system-interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "lively-system-interface",
"version": "0.2.1",
"repository": "https://github.com/LivelyKernel/lively-system-interface",
"type": "module",
"dependencies": {
"lively.modules": "*",
"lively.resources": "*",
Expand Down
23 changes: 17 additions & 6 deletions lively.ast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "lively.ast",
"version": "0.11.3",
"description": "Parsing JS code into ASTs and tools to query and transform these trees.",
"main": "dist/lively.ast.js",
"main": "index.js",
"type": "module",
"scripts": {
"test": "mocha-es6 tests/*-test.js",
"build": "node ./tools/build.js"
Expand All @@ -26,10 +27,17 @@
},
"homepage": "https://github.com/LivelyKernel/lively.ast",
"dependencies": {
"lively.lang": "^1.0.0"
"lively.lang": "^1.0.0",
"esutils": "2.0.3",
"@javascript-obfuscator/estraverse": "5.4.0",
"astq": "2.7.5",
"escodegen": "2.0.0",
"acorn": "8.0.4",
"acorn-walk": "8.2.0",
"acorn-loose": "8.3.0"
},
"devDependencies": {
"acorn": "^5.2.1",
"acorn": "8.0.4",
"acorn-jsx": "^4.1.0",
"acorn-es7-plugin": "^1.1.7",
"acorn5-object-spread": "^4.0.0",
Expand All @@ -47,10 +55,13 @@
"systemjs": {
"main": "index.js",
"map": {
"escodegen": "https://jspm.dev/escodegen",
"acorn-walk": "https://jspm.dev/acorn-walk",
"acorn-loose": "https://jspm.dev/acorn-loose",
"escodegen": "https://jspm.dev/escodegen@2.0.0",
"acorn-walk": "https://jspm.dev/acorn-walk@8.2.0",
"acorn-loose": "https://jspm.dev/acorn-loose@8.3.0",
"acorn": "https://jspm.dev/[email protected]",
"esutils": "https://jspm.dev/[email protected]",
"astq": "https://jspm.dev/[email protected]",
"@javascript-obfuscator/estraverse": "https://jspm.dev/@javascript-obfuscator/[email protected]",
"util": {
"node": "@node/util",
"~node": "@empty"
Expand Down
1 change: 1 addition & 0 deletions lively.bindings/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "lively.bindings",
"version": "0.1.2",
"type": "module",
"dependencies": {
"lively.lang": "*"
},
Expand Down
1 change: 1 addition & 0 deletions lively.classes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.20",
"description": "EcmaScript 6 classes for live development",
"main": "dist/lively.classes.js",
"type": "module",
"systemjs": {
"main": "index.js"
},
Expand Down
3 changes: 2 additions & 1 deletion lively.freezer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "lively.freezer",
"version": "0.1.0",
"type": "module",
"dependencies": {
"@babel/core": "^7.12.3",
"@babel/cli": "^7.12.1",
Expand Down Expand Up @@ -36,4 +37,4 @@
]
}
}
}
}
8 changes: 6 additions & 2 deletions lively.lang/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "lively.lang",
"version": "1.0.25",
"description": "JavaScript utils providing useful abstractions for working with collections, functions, objects.",
"main": "dist/lively.lang.js",
"main": "./index.js",
"type": "module",
"systemjs": {
"main": "index.js",
"map": {
Expand Down Expand Up @@ -33,6 +34,9 @@
"articles": "https://jspm.dev/npm:[email protected]"
}
},
"dependencies": {
"articles": "^0.2.2"
},
"devDependencies": {
"babel-core": "^6.16.0",
"babel-plugin-external-helpers": "^6.8.0",
Expand Down Expand Up @@ -87,4 +91,4 @@
"url": "https://github.com/LivelyKernel/lively.lang/issues"
},
"homepage": "https://github.com/LivelyKernel/lively.lang"
}
}
3 changes: 2 additions & 1 deletion lively.notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"url": "https://github.com/LivelyKernel/lively.notifications/issues"
},
"homepage": "https://github.com/LivelyKernel/lively.notifications#readme",
"main": "dist/lively.notifications.js",
"main": "index.js",
"type": "module",
"systemjs": {
"main": "./index.js"
},
Expand Down
1 change: 1 addition & 0 deletions lively.resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.37",
"repository": "https://github.com/LivelyKernel/lively.resources",
"main": "dist/lively.resources.js",
"type": "module",
"systemjs": {
"main": "index.js",
"map": {
Expand Down
2 changes: 2 additions & 0 deletions lively.serializer2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "lively.serializer2",
"version": "0.1.3",
"type": "module",
"main": "index.js",
"dependencies": {
"lively.lang": "^1.0.5",
"semver": "^5.3.0"
Expand Down
14 changes: 9 additions & 5 deletions lively.source-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.7",
"description": "EcmaScript 6 classes for live development",
"main": "dist/lively.source-transform.js",
"type": "module",
"scripts": {
"test": "mocha-es6 tests/*-test.js",
"build": "node tools/build.js"
Expand All @@ -25,7 +26,10 @@
"dependencies": {
"lively.ast": "https://github.com/LivelyKernel/lively.ast",
"lively.lang": "https://github.com/LivelyKernel/lively.lang",
"lively.classes": "https://github.com/LivelyKernel/lively.classes"
"lively.classes": "https://github.com/LivelyKernel/lively.classes",
"babel-plugin-transform-jsx": "2.0.0",
"@babel/plugin-proposal-optional-catch-binding": "7.16.7",
"@babel/plugin-syntax-import-meta": "7.10.4"
},
"devDependencies": {
"lively.vm": "*",
Expand All @@ -46,14 +50,14 @@
"~node": "https://jspm.dev/babel-plugin-transform-jsx",
"node": "@empty"
},
"babel-catch-binding": {
"@babel/plugin-proposal-optional-catch-binding": {
"~node": "https://jspm.dev/@babel/plugin-proposal-optional-catch-binding",
"node": "@empty"
},
"babel-import-meta": {
"@babel/plugin-syntax-import-meta": {
"node": "@empty",
"~node": "https://jspm.dev/@babel/plugin-syntax-import-meta"
"~node": "https://jspm.dev/@babel/plugin-syntax-import-meta"
}
}
}
}
}
4 changes: 2 additions & 2 deletions lively.storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"lively.lang": "^1.0.0",
"lively.resources": "^0.1.18",
"pouchdb": "7.1.1"
"pouchdb": "7.2.1"
},
"devDependencies": {
"babel-core": "^6.16.0",
Expand All @@ -33,7 +33,7 @@
"babel-regenerator-runtime": "^6.5.0",
"browserify": "^14.1.0",
"mocha-es6": "^0.5",
"pouchdb-adapter-memory": "7.1.1",
"pouchdb-adapter-memory": "7.2.1",
"rollup": "^0.36.1",
"rollup-plugin-babel": "^2.7.1",
"loaderify": "^0.1.5",
Expand Down
3 changes: 2 additions & 1 deletion lively.vm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "lively.vm",
"version": "0.9.18",
"description": "Controlled JavaScript code execution and instrumentation.",
"main": "dist/lively.vm.js",
"main": "index.js",
"type": "module",
"systemjs": {
"main": "index.js"
},
Expand Down

0 comments on commit e82fb9a

Please sign in to comment.