@jcoreio/toolchain 4.2.0 → 4.3.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain",
3
- "version": "4.2.0",
3
+ "version": "4.3.1",
4
4
  "description": "base JS build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,6 +18,9 @@ module.exports = [
18
18
  async function getConfigFiles() {
19
19
  const { env, rules } = (await getRootEslintConfig()) || {}
20
20
  const files = {
21
+ '.npmrc': dedent`
22
+ optional=false
23
+ `,
21
24
  '.eslintrc.cjs': (prev) =>
22
25
  prev
23
26
  ? prev.replace(
package/scripts/init.cjs CHANGED
@@ -47,6 +47,7 @@ async function init(args = []) {
47
47
  'react',
48
48
  'circle',
49
49
  'semantic-release',
50
+ 'aws-lambda',
50
51
  ].map((value) => ({
51
52
  title: `${name}-${value}`,
52
53
  value: `${name}-${value}`,
package/util/ChdirFs.cjs CHANGED
@@ -10,6 +10,10 @@ function ChdirFs(cwd) {
10
10
  emptyDir: (path, ...args) => fs.emptyDir(resolve(cwd, path), ...args),
11
11
  emptyDirSync: (path, ...args) =>
12
12
  fs.emptyDirSync(resolve(cwd, path), ...args),
13
+ ensureSymlink: (src, dest, ...args) =>
14
+ fs.ensureSymlink(resolve(cwd, src), resolve(cwd, dest), ...args),
15
+ ensureSymlinkSync: (src, dest, ...args) =>
16
+ fs.ensureSymlinkSync(resolve(cwd, src), resolve(cwd, dest), ...args),
13
17
  lstat: (path, ...args) => fs.lstat(resolve(cwd, path), ...args),
14
18
  stat: (path, ...args) => fs.stat(resolve(cwd, path), ...args),
15
19
  lstatSync: (path, ...args) => fs.lstatSync(resolve(cwd, path), ...args),
package/util/execa.cjs CHANGED
@@ -37,8 +37,8 @@ function getExecaArgs(command, args, options, ...rest) {
37
37
 
38
38
  const opts = {
39
39
  stdio: 'inherit',
40
- cwd: projectDir,
41
40
  ...options,
41
+ cwd: options.cwd ? Path.resolve(projectDir, options.cwd) : projectDir,
42
42
  env: {
43
43
  ...process.env,
44
44
  ...options.env,