Skip to content

Commit

Permalink
Revert "Add CommonJS types to fix node16 module resolution (#78)"
Browse files Browse the repository at this point in the history
This reverts commit b3e5df5.
  • Loading branch information
nzakas authored Feb 12, 2024
1 parent 96c178f commit 20c740d
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 189 deletions.
2 changes: 1 addition & 1 deletion js/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
Expand Down
3 changes: 1 addition & 2 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"files": [
"dist/momoa.js",
"dist/momoa.cjs",
"dist/momoa.d.ts",
"dist/momoa.d.cts"
"dist/momoa.d.ts"
],
"repository": {
"type": "git",
Expand Down
12 changes: 0 additions & 12 deletions js/rollup.types.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,5 @@ export default [
plugins: [
dts()
]
},
{
input: "temp/momoa.d.ts",
output: [
{
file: "dist/momoa.d.cts",
format: "commonjs"
}
],
plugins: [
dts()
]
}
];
4 changes: 0 additions & 4 deletions js/tests/fixtures/ts-project-module-node16-cjs/index.ts

This file was deleted.

42 changes: 0 additions & 42 deletions js/tests/fixtures/ts-project-module-node16-cjs/package-lock.json

This file was deleted.

13 changes: 0 additions & 13 deletions js/tests/fixtures/ts-project-module-node16-cjs/package.json

This file was deleted.

12 changes: 0 additions & 12 deletions js/tests/fixtures/ts-project-module-node16-cjs/tsconfig.json

This file was deleted.

4 changes: 0 additions & 4 deletions js/tests/fixtures/ts-project-module-node16-esm/index.ts

This file was deleted.

42 changes: 0 additions & 42 deletions js/tests/fixtures/ts-project-module-node16-esm/package-lock.json

This file was deleted.

14 changes: 0 additions & 14 deletions js/tests/fixtures/ts-project-module-node16-esm/package.json

This file was deleted.

12 changes: 0 additions & 12 deletions js/tests/fixtures/ts-project-module-node16-esm/tsconfig.json

This file was deleted.

31 changes: 0 additions & 31 deletions js/tests/types.test.js

This file was deleted.

0 comments on commit 20c740d

Please sign in to comment.