Skip to content

Commit d7e9daf

Browse files
committed
fix: using yarn build instead of rollup
1 parent ec9b4ed commit d7e9daf

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

packages/parsers/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"private": true,
88
"license": "Apache-2.0",
99
"scripts": {
10-
"build": "rollup -c ./rollup.config.js",
10+
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages",
11+
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./ --ignore \"src/tests/*\"",
12+
"build:esm": "BABEL_ENV=esm babel src --out-dir ./esm --ignore \"src/tests/*\"",
13+
"build:typings": "node ../../scripts/generate-typings.js",
14+
"build:packages": "node ../../scripts/generate-packages.js",
1115
"test": "yarn --cwd ../.. test packages/parsers"
1216
},
1317
"homepage": "https://data-driven-forms.org/",

packages/parsers/project.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"build": {
1010
"executor": "nx:run-commands",
1111
"outputs": [
12-
"{projectRoot}/dist"
12+
"{projectRoot}/index.js",
13+
"{projectRoot}/esm",
14+
"{projectRoot}/*.d.ts"
1315
],
1416
"options": {
1517
"command": "yarn build",
@@ -18,13 +20,41 @@
1820
"dependsOn": ["^build"],
1921
"cache": true
2022
},
23+
"build:cjs": {
24+
"executor": "nx:run-commands",
25+
"outputs": ["{projectRoot}/*.js"],
26+
"options": {
27+
"command": "yarn build:cjs",
28+
"cwd": "packages/parsers"
29+
},
30+
"cache": true
31+
},
32+
"build:esm": {
33+
"executor": "nx:run-commands",
34+
"outputs": ["{projectRoot}/esm"],
35+
"options": {
36+
"command": "yarn build:esm",
37+
"cwd": "packages/parsers"
38+
},
39+
"cache": true
40+
},
2141
"test": {
2242
"executor": "nx:run-commands",
2343
"options": {
2444
"command": "yarn test",
2545
"cwd": "packages/parsers"
2646
},
2747
"cache": true
48+
},
49+
"typecheck": {
50+
"executor": "@nx/js:tsc",
51+
"options": {
52+
"main": "packages/parsers/src/index.js",
53+
"tsConfig": "packages/parsers/tsconfig.json",
54+
"outputPath": "packages/parsers/dist"
55+
},
56+
"outputs": ["{options.outputPath}"],
57+
"cache": true
2858
}
2959
},
3060
"implicitDependencies": ["@data-driven-forms/react-form-renderer"]

0 commit comments

Comments
 (0)