Skip to content

Commit

Permalink
removed CJS support 😢
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Aug 3, 2023
1 parent 213d6e2 commit 5120023
Show file tree
Hide file tree
Showing 4 changed files with 409 additions and 247 deletions.
12 changes: 3 additions & 9 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"bin": {
"moonwall": "./moonwall.mjs"
Expand All @@ -49,14 +47,10 @@
],
"scripts": {
"clean": "pnpm rimraf dist && pnpm rimraf node_modules",
"build": "pnpm exec rimraf dist && tsup src --format cjs,esm --config tsup.config.ts && pnpm generate-types",
"generate-types": "tsup src --format cjs,esm --dts --config tsup.config.ts",
"watch": "tsup src --format cjs,esm --dts --watch",
"typecheck": "pnpm exec tsc --noEmit",
"build": "tsup src --format esm --config tsup.config.ts",
"generate-types": "tsup src --format esm --dts",
"prepublish": "pnpm run build && pnpm run generate-types && pnpm typecheck",
"prepare": "pnpm build",
"compile": "pnpm build ",
"lint": "tsc"
"typecheck": "pnpm exec tsc --noEmit"
},
"dependencies": {
"@moonwall/types": "workspace:*",
Expand Down
13 changes: 3 additions & 10 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"main": "dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"engines": {
Expand All @@ -46,15 +44,10 @@
],
"scripts": {
"clean": "pnpm rimraf dist && pnpm rimraf node_modules",
"build": "pnpm exec rimraf dist && tsup src --format cjs,esm --config tsup.config.ts && pnpm generate-types",
"generate-types": "tsup src --format cjs,esm --dts --config tsup.config.ts && pnpm schema && pnpm typecheck",
"watch": "tsup src --format cjs,esm --dts --watch",
"typecheck": "pnpm exec tsc --noEmit",
"prepublish": "pnpm run build && pnpm run generate-types && pnpm typecheck",
"build": " tsup src --format esm",
"generate-types": "tsup src --format esm --dts && pnpm schema && pnpm typecheck",
"schema": "typescript-json-schema --tsNodeRegister --esModuleInterop -o config_schema.json ./src/config.ts MoonwallConfig",
"prepare": "pnpm build",
"compile": "pnpm build ",
"lint": "tsc"
"typecheck": "pnpm exec tsc --noEmit"
},
"dependencies": {
"@polkadot/api": "^10.9.1",
Expand Down
9 changes: 2 additions & 7 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"main": "dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"engines": {
Expand All @@ -46,13 +44,10 @@
],
"scripts": {
"clean": "pnpm rimraf dist && pnpm rimraf node_modules",
"build": "pnpm exec rimraf dist && tsup src --format cjs,esm --config tsup.config.ts && pnpm generate-types",
"generate-types": "tsup src --format cjs,esm --dts --config tsup.config.ts",
"watch": "tsup src --format cjs,esm --dts --watch",
"build": "pnpm tsup src --format esm --config tsup.config.ts",
"generate-types": "tsup src --format esm --dts --config tsup.config.ts",
"typecheck": "pnpm exec tsc --noEmit",
"prepublish": "pnpm run build && pnpm run generate-types && pnpm typecheck",
"prepare": "pnpm build",
"compile": "pnpm build ",
"lint": "tsc"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 5120023

Please sign in to comment.