Skip to content

Commit 5ecbdd8

Browse files
committed
Adding script for project.json generation for sub-packages
1 parent 3cfa84f commit 5ecbdd8

File tree

13 files changed

+76
-12
lines changed

13 files changed

+76
-12
lines changed

packages/ant-component-mapper/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"license": "Apache-2.0",
99
"scripts": {
1010
"start": "webpack-dev-server --config ./config/webpack.config.js --open --hot",
11-
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages && yarn build:css",
11+
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages && yarn build:sub-projects && yarn build:css",
1212
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./ --ignore \"src/tests/*\"",
1313
"build:esm": "BABEL_ENV=esm babel src --out-dir ./esm --ignore \"src/tests/*\"",
1414
"build:typings": "node ../../scripts/generate-typings.js",
1515
"build:packages": "node ../../scripts/generate-packages.js",
16+
"build:sub-projects": "node ../../scripts/generate-sub-projects.js",
1617
"vendor": "webpack --env vendor --config ./config/webpack.config.js",
1718
"build:css": "node ../../scripts/copy-css.js",
1819
"test": "yarn --cwd ../.. test packages/ant-component-mapper"

packages/ant-component-mapper/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"outputs": [
1111
"{projectRoot}/index.js",
1212
"{projectRoot}/esm",
13-
"{projectRoot}/*.d.ts"
13+
"{projectRoot}/*.d.ts",
14+
"{projectRoot}/*/project.json"
1415
],
1516
"options": {
1617
"command": "yarn build",

packages/blueprint-component-mapper/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"license": "Apache-2.0",
99
"scripts": {
1010
"start": "webpack-dev-server --config ./config/webpack.config.js --open --hot",
11-
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages",
11+
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages && yarn build:sub-projects",
1212
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./ --ignore \"src/tests/*\"",
1313
"build:esm": "BABEL_ENV=esm babel src --out-dir ./esm --ignore \"src/tests/*\"",
1414
"build:typings": "node ../../scripts/generate-typings.js",
1515
"build:packages": "node ../../scripts/generate-packages.js",
16+
"build:sub-projects": "node ../../scripts/generate-sub-projects.js",
1617
"test": "yarn --cwd ../.. test packages/blueprint-component-mapper"
1718
},
1819
"homepage": "https://data-driven-forms.org/",

packages/blueprint-component-mapper/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"outputs": [
1212
"{projectRoot}/index.js",
1313
"{projectRoot}/esm",
14-
"{projectRoot}/*.d.ts"
14+
"{projectRoot}/*.d.ts",
15+
"{projectRoot}/*/project.json"
1516
],
1617
"options": {
1718
"command": "yarn build",

packages/carbon-component-mapper/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"license": "Apache-2.0",
99
"scripts": {
1010
"start": "webpack-dev-server --config ./config/webpack.config.js --open --hot",
11-
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages",
11+
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages && yarn build:sub-projects",
1212
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./ --ignore \"src/tests/*\"",
1313
"build:esm": "BABEL_ENV=esm babel src --out-dir ./esm --ignore \"src/tests/*\"",
1414
"build:typings": "node ../../scripts/generate-typings.js",
1515
"build:packages": "node ../../scripts/generate-packages.js",
16+
"build:sub-projects": "node ../../scripts/generate-sub-projects.js",
1617
"test": "yarn --cwd ../.. test packages/carbon-component-mapper"
1718
},
1819
"homepage": "https://data-driven-forms.org/",

packages/carbon-component-mapper/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"outputs": [
1212
"{projectRoot}/index.js",
1313
"{projectRoot}/esm",
14-
"{projectRoot}/*.d.ts"
14+
"{projectRoot}/*.d.ts",
15+
"{projectRoot}/*/project.json"
1516
],
1617
"options": {
1718
"command": "yarn build",

packages/mui-component-mapper/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"license": "Apache-2.0",
99
"scripts": {
1010
"start": "webpack-dev-server --config ./config/webpack.config.js --open --hot --port=8003",
11-
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages",
11+
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages && yarn build:sub-projects",
1212
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./ --ignore \"src/tests/*\"",
1313
"build:esm": "BABEL_ENV=esm babel src --out-dir ./esm --ignore \"src/tests/*\"",
1414
"build:typings": "node ../../scripts/generate-typings.js",
1515
"build:packages": "node ../../scripts/generate-packages.js",
16+
"build:sub-projects": "node ../../scripts/generate-sub-projects.js",
1617
"vendor": "webpack --env vendor --config ./config/webpack.config.js",
1718
"test": "yarn --cwd ../.. test packages/mui-component-mapper"
1819
},

packages/mui-component-mapper/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"outputs": [
1212
"{projectRoot}/index.js",
1313
"{projectRoot}/esm",
14-
"{projectRoot}/*.d.ts"
14+
"{projectRoot}/*.d.ts",
15+
"{projectRoot}/*/project.json"
1516
],
1617
"options": {
1718
"command": "yarn build",

packages/pf4-component-mapper/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"license": "Apache-2.0",
99
"scripts": {
1010
"start": "webpack-dev-server --config ./config/webpack.config.js --open --hot",
11-
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages && yarn build:css",
11+
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages && yarn build:sub-projects && yarn build:css",
1212
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./ --ignore \"src/tests/*\"",
1313
"build:esm": "BABEL_ENV=esm babel src --out-dir ./esm --ignore \"src/tests/*\"",
1414
"build:typings": "node ../../scripts/generate-typings.js",
1515
"build:packages": "node ../../scripts/generate-packages.js",
16+
"build:sub-projects": "node ../../scripts/generate-sub-projects.js",
1617
"build:css": "node ../../scripts/copy-css.js",
1718
"test": "yarn --cwd ../.. test packages/pf4-component-mapper"
1819
},

packages/pf4-component-mapper/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"outputs": [
1212
"{projectRoot}/index.js",
1313
"{projectRoot}/esm",
14-
"{projectRoot}/*.d.ts"
14+
"{projectRoot}/*.d.ts",
15+
"{projectRoot}/*/project.json"
1516
],
1617
"options": {
1718
"command": "yarn build",

0 commit comments

Comments
 (0)