Skip to content

Commit

Permalink
Merge pull request #303 from near/SQAC-159/change-builder-to-rollup
Browse files Browse the repository at this point in the history
build: Change Builder to Support (esm, cjs, umd)
  • Loading branch information
kujtimprenkuSQA authored May 26, 2022
2 parents 9afac6f + 35ea72c commit da4b60c
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 60 deletions.
25 changes: 15 additions & 10 deletions packages/ledger/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"targetDependencies": {
"build": [{
"target": "build",
"projects": "dependencies"
}]
},
"options": {
"outputPath": "dist/packages/ledger",
"main": "packages/ledger/src/index.ts",
"tsConfig": "packages/ledger/tsconfig.lib.json",
"project": "packages/ledger/package.json",
"entryFile": "packages/ledger/src/index.ts",
"buildableProjectDepsInPackageJsonType": "dependencies",
"compiler": "babel",
"format": ["esm", "umd", "cjs"],
"assets": [
"packages/ledger/*.md",
"packages/ledger/assets/*"
{
"glob": "packages/ledger/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/ledger/assets/*",
"input": ".",
"output": "assets"
}
]
}
},
Expand Down
25 changes: 15 additions & 10 deletions packages/math-wallet/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"targetDependencies": {
"build": [{
"target": "build",
"projects": "dependencies"
}]
},
"options": {
"outputPath": "dist/packages/math-wallet",
"main": "packages/math-wallet/src/index.ts",
"tsConfig": "packages/math-wallet/tsconfig.lib.json",
"project": "packages/math-wallet/package.json",
"entryFile": "packages/math-wallet/src/index.ts",
"buildableProjectDepsInPackageJsonType": "dependencies",
"compiler": "babel",
"format": ["esm", "umd", "cjs"],
"assets": [
"packages/math-wallet/*.md",
"packages/math-wallet/assets/*"
{
"glob": "packages/math-wallet/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/math-wallet/assets/*",
"input": ".",
"output": "assets"
}
]
}
},
Expand Down
25 changes: 15 additions & 10 deletions packages/near-wallet/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"targetDependencies": {
"build": [{
"target": "build",
"projects": "dependencies"
}]
},
"options": {
"outputPath": "dist/packages/near-wallet",
"main": "packages/near-wallet/src/index.ts",
"tsConfig": "packages/near-wallet/tsconfig.lib.json",
"project": "packages/near-wallet/package.json",
"entryFile": "packages/near-wallet/src/index.ts",
"buildableProjectDepsInPackageJsonType": "dependencies",
"compiler": "babel",
"format": ["esm", "umd", "cjs"],
"assets": [
"packages/near-wallet/*.md",
"packages/near-wallet/assets/*"
{
"glob": "packages/near-wallet/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/near-wallet/assets/*",
"input": ".",
"output": "assets"
}
]
}
},
Expand Down
25 changes: 15 additions & 10 deletions packages/sender/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"targetDependencies": {
"build": [{
"target": "build",
"projects": "dependencies"
}]
},
"options": {
"outputPath": "dist/packages/sender",
"main": "packages/sender/src/index.ts",
"tsConfig": "packages/sender/tsconfig.lib.json",
"project": "packages/sender/package.json",
"entryFile": "packages/sender/src/index.ts",
"buildableProjectDepsInPackageJsonType": "dependencies",
"compiler": "babel",
"format": ["esm", "umd", "cjs"],
"assets": [
"packages/sender/*.md",
"packages/sender/assets/*"
{
"glob": "packages/sender/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/sender/assets/*",
"input": ".",
"output": "assets"
}
]
}
},
Expand Down
25 changes: 15 additions & 10 deletions packages/wallet-connect/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"targetDependencies": {
"build": [{
"target": "build",
"projects": "dependencies"
}]
},
"options": {
"outputPath": "dist/packages/wallet-connect",
"main": "packages/wallet-connect/src/index.ts",
"tsConfig": "packages/wallet-connect/tsconfig.lib.json",
"project": "packages/wallet-connect/package.json",
"entryFile": "packages/wallet-connect/src/index.ts",
"buildableProjectDepsInPackageJsonType": "dependencies",
"compiler": "babel",
"format": ["esm", "umd", "cjs"],
"assets": [
"packages/wallet-connect/*.md",
"packages/wallet-connect/assets/*"
{
"glob": "packages/wallet-connect/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/wallet-connect/assets/*",
"input": ".",
"output": "assets"
}
]
}
},
Expand Down
25 changes: 15 additions & 10 deletions packages/wallet-utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"targetDependencies": {
"build": [{
"target": "build",
"projects": "dependencies"
}]
},
"options": {
"outputPath": "dist/packages/wallet-utils",
"main": "packages/wallet-utils/src/index.ts",
"tsConfig": "packages/wallet-utils/tsconfig.lib.json",
"project": "packages/wallet-utils/package.json",
"entryFile": "packages/wallet-utils/src/index.ts",
"buildableProjectDepsInPackageJsonType": "dependencies",
"compiler": "babel",
"format": ["esm", "umd", "cjs"],
"assets": [
"packages/wallet-utils/*.md",
"packages/wallet-utils/assets/*"
{
"glob": "packages/wallet-utils/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/wallet-utils/assets/*",
"input": ".",
"output": "assets"
}
]
}
},
Expand Down

0 comments on commit da4b60c

Please sign in to comment.