create-sitecore-jss 22.3.1-canary.5 → 22.3.1-canary.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.
@@ -24,7 +24,6 @@
24
24
  "src/favicon.ico"
25
25
  ],
26
26
  "styles": [
27
- "node_modules/bootstrap/dist/css/bootstrap.min.css",
28
27
  "src/styles.css"
29
28
  ],
30
29
  "scripts": [],
@@ -21,8 +21,9 @@
21
21
  "noUnusedParameters": true,
22
22
  "newLine": "LF",
23
23
  "types": ["node"],
24
- "typeRoots": ["node_modules/@types"],
25
- "lib": ["es2018", "dom", "esnext.asynciterable"],
24
+ // add additional type root in case of monorepo where dependencies are hoisted to root node_modules
25
+ "typeRoots": ["node_modules/@types", "../node_modules/@types"],
26
+ "lib": ["es2019", "dom", "esnext.asynciterable"],
26
27
  "paths": {
27
28
  "@angular/*": ["../node_modules/@angular/*"],
28
29
  "rxjs": ["node_modules/rxjs", "../node_modules/rxjs"],
@@ -0,0 +1,13 @@
1
+ {
2
+ "projects": {
3
+ "<%- appName %>": {
4
+ "architect": {
5
+ "build": {
6
+ "options": {
7
+ "styles": ["node_modules/bootstrap/dist/css/bootstrap.min.css"]
8
+ }
9
+ }
10
+ }
11
+ }
12
+ }
13
+ }
@@ -1,13 +1,13 @@
1
- import { execSync } from 'child_process';
2
1
  import { environment } from '../src/environments/environment';
2
+ import { cpSync, rmSync } from 'fs';
3
3
 
4
4
  // Executed at the end of the build process (jss build) to move the build output to the proxy build path
5
5
 
6
6
  try {
7
7
  console.log('Moving build output to proxy build path:', environment.proxyBuildPath);
8
8
 
9
- execSync(`del-cli ${environment.proxyBuildPath} --force`, { stdio: 'inherit' });
10
- execSync(`move-cli ./dist ${environment.proxyBuildPath}`, { stdio: 'inherit' });
9
+ rmSync(environment.proxyBuildPath, { recursive: true, force: true });
10
+ cpSync('./dist', environment.proxyBuildPath, { recursive: true });
11
11
 
12
12
  console.log('Proxy build prepared successfully!');
13
13
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sitecore-jss",
3
- "version": "22.3.1-canary.5",
3
+ "version": "22.3.1-canary.6",
4
4
  "description": "Sitecore JSS initializer",
5
5
  "bin": "./dist/index.js",
6
6
  "scripts": {
@@ -65,5 +65,5 @@
65
65
  "ts-node": "^10.9.1",
66
66
  "typescript": "~5.6.3"
67
67
  },
68
- "gitHead": "12147b54fa97ba45f6ee9da075cca45c7e2cb15a"
68
+ "gitHead": "8bced38c251a598c04b1e6fa22b80ef7025eeb4e"
69
69
  }