@pushwoosh/frontend-builder-engine 0.0.4 → 0.0.6

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.
@@ -1,3 +1,4 @@
1
+ const fs = require('fs').promises;
1
2
  const { program, Command } = require('commander');
2
3
 
3
4
  const { buildTs } = require('./build-ts');
@@ -17,6 +18,8 @@ program
17
18
  const tsConfig = loadTsConfig({});
18
19
  await buildTs(curDir, tsConfig);
19
20
  await buildStyledComponents(targetDir, targetDir);
21
+ await fs.copyFile(`${curDir}/package.json`, `${targetDir}/package.json`);
22
+ await fs.copyFile(`${curDir}/.npmrc`, `${targetDir}/.npmrc`);
20
23
  })
21
24
  .option('-s, --ss <type>', 'output extra debugging');
22
25
 
@@ -6,7 +6,7 @@ const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
6
6
 
7
7
  function getConfig() {
8
8
  const projectPath = process.cwd();
9
- console.log(1112, projectPath, __dirname);
9
+ // console.log(1112, projectPath, __dirname);
10
10
  return {
11
11
  target: 'web',
12
12
  mode: 'development',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/frontend-builder-engine",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Pushwoosh frontend builder engine",
5
5
  "main": "./lib/pushwoosh-frontend-builder-engine.js",
6
6
  "scripts": {
@@ -22,9 +22,11 @@
22
22
  "tsconfig-paths-webpack-plugin": "^4.1.0",
23
23
  "typescript": "^5.0.0",
24
24
  "webpack": "^5.91.0",
25
+ "webpack-cli": "^5.1.4",
25
26
  "webpack-dev-server": "^5.0.4"
26
27
  },
27
28
  "peerDependencies": {
29
+ "@types/webpack-env": "^1.18.4",
28
30
  "lodash": "^4.0.0",
29
31
  "typescript": "^5.0.0"
30
32
  },