Skip to content

Commit

Permalink
feat: migrate to ES Modules
Browse files Browse the repository at this point in the history
BREAKING CHANGE: programs now are in ES Modules and won't work with Common JS require()
  • Loading branch information
revelt committed Aug 27, 2021
1 parent c51676b commit 8c9d95d
Show file tree
Hide file tree
Showing 1,422 changed files with 5,697 additions and 347,629 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"private": true,
"engines": {
"node": ">=10"
"node": ">=12"
},
"repository": "https://gitlab.com/codsen/codsen/",
"homepage": "https://codsen.com",
Expand Down Expand Up @@ -56,7 +56,6 @@
"eslint-plugin-test-num": "^1.6.0",
"esm": "^3.2.25",
"execa": "^5.1.1",
"lect": "^0.17.0",
"lerna": "^4.0.0",
"lerna-clean-changelogs-cli": "^1.5.0",
"lerna-dependency-graph": "^1.1.0",
Expand Down
17 changes: 11 additions & 6 deletions packages/.lectrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@babel/register": "^7.12.10",
"@istanbuljs/esm-loader-hook": "^0.1.2",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.1",
Expand All @@ -188,7 +189,6 @@
"core-js": "^3.10.0",
"cross-env": "^7.0.3",
"eslint": "^7.15.0",
"lect": "^0.15.1",
"rollup": "^2.35.1",
"rollup-plugin-ascii": "^0.0.3",
"rollup-plugin-banner": "^0.2.1",
Expand All @@ -201,8 +201,13 @@
},
"tap": {
"coverage-report": ["text", "json-summary"],
"nyc-arg": ["--exclude=**/*.cjs.js", "--exclude=**/*.umd.js"],
"timeout": 0
"node-arg": [
"--no-warnings",
"--experimental-loader",
"@istanbuljs/esm-loader-hook"
],
"timeout": 0,
"check-coverage": false
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -234,7 +239,7 @@
"republish": "npm publish || :",
"tap": "tap",
"test": "npm run lint && npm run unittest && npm run format",
"unittest": "./node_modules/.bin/tap --no-only --output-file=testStats.md --reporter=terse && npm run clean_cov",
"unittest": "tap --no-only --output-file=testStats.md --reporter=terse && npm run clean_cov",
"clean_cov": "../../scripts/leaveCoverageTotalOnly.js"
},
"rollup": {
Expand All @@ -254,8 +259,8 @@
"tsc": "tsc",
"pretest": "npm run build",
"test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format",
"test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
"unittest": "./node_modules/.bin/tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf",
"test:examples": "../../scripts/test-examples.mjs && npm run lect && npm run prettier",
"unittest": "tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf",
"clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
"clean_types": "../../scripts/cleanTypes.js"
}
Expand Down

0 comments on commit 8c9d95d

Please sign in to comment.