@pushwoosh/frontend-builder-engine 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,19 +10,21 @@ const { loadPushwooshConfig } = require('./helpers');
10
10
  program
11
11
  .version('1.0.0')
12
12
  .description('Build lib')
13
- //.option('-n, --name <type>', 'Your name')
14
- //.option('-a, --age <type>', 'Your age')
15
13
  .command('lib:build')
16
14
  .action(async () => {
15
+ const pushwooshConfig = loadPushwooshConfig();
17
16
  const curDir = process.cwd();
18
- const targetDir = `${curDir}/dist`;
19
- const tsConfig = loadTsConfig({});
17
+ const targetDir = pushwooshConfig.libBuildTargetDir ?? `${curDir}/dist`;
18
+ const tsConfig = loadTsConfig({
19
+ compilerOptions: {
20
+ outDir: targetDir,
21
+ }
22
+ });
20
23
  await buildTs(curDir, tsConfig);
21
24
  await buildStyledComponents(targetDir, targetDir);
22
25
  await fs.copyFile(`${curDir}/package.json`, `${targetDir}/package.json`);
23
26
  await fs.copyFile(`${curDir}/.npmrc`, `${targetDir}/.npmrc`);
24
- })
25
- .option('-s, --ss <type>', 'output extra debugging');
27
+ });
26
28
 
27
29
  program
28
30
  .addCommand(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/frontend-builder-engine",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Pushwoosh frontend builder engine",
5
5
  "main": "./lib/pushwoosh-frontend-builder-engine.js",
6
6
  "scripts": {