@atlaspack/apvm 0.0.3-dev.3867 → 0.0.4-canary.3767

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/apvm.mjs +16 -4
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaspack/apvm
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#517](https://github.com/atlassian-labs/atlaspack/pull/517) [`23a8687`](https://github.com/atlassian-labs/atlaspack/commit/23a8687f886a45ebec028882291732a07e70b02f) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixing "package.json#main" specifier in npm shims produced by "apvm link"
8
+
9
+ - [#507](https://github.com/atlassian-labs/atlaspack/pull/507) [`ef95f8c`](https://github.com/atlassian-labs/atlaspack/commit/ef95f8c1a1f3d47721ca49bc543fe0010f9edbb1) Thanks [@alshdavid](https://github.com/alshdavid)! - Added "version" to the package.json of shims
10
+
11
+ - [#482](https://github.com/atlassian-labs/atlaspack/pull/482) [`4b5daf8`](https://github.com/atlassian-labs/atlaspack/commit/4b5daf81c7b2b42ffc1adc0af0422f38b4d82e60) Thanks [@alshdavid](https://github.com/alshdavid)! - Initial commit of Atlaspack Version Manager
12
+
13
+ - [#509](https://github.com/atlassian-labs/atlaspack/pull/509) [`8e1bec1`](https://github.com/atlassian-labs/atlaspack/commit/8e1bec17f4b0ae5132c6777ec14bb2c1275724b1) Thanks [@alshdavid](https://github.com/alshdavid)! - Yarn install resets permissions on binaries. This change checks the binary has the correct permissions before running it and if not, sets the correct permissions
14
+
3
15
  ## 0.0.2
4
16
 
5
17
  ### Patch Changes
package/apvm.mjs CHANGED
@@ -37,8 +37,20 @@ if (!fs.existsSync(binPath)) {
37
37
  process.exit(1);
38
38
  }
39
39
 
40
+ if (platform !== 'windows' && !isExec(binPath)) {
41
+ fs.chmodSync(binPath, '755');
42
+ }
43
+
40
44
  const [, , ...args] = process.argv;
41
- child_process.execFileSync(`${binPath} ${args.join(' ')}`, {
42
- stdio: 'inherit',
43
- shell: true,
44
- });
45
+ try {
46
+ child_process.execFileSync(binPath, args, {
47
+ stdio: 'inherit',
48
+ shell: true,
49
+ });
50
+ } catch (err) {
51
+ process.exit(err.status);
52
+ }
53
+
54
+ function isExec(p) {
55
+ return !!(fs.statSync(p).mode & fs.constants.S_IXUSR);
56
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlaspack/apvm",
3
3
  "description": "Atlaspack version manager",
4
- "version": "0.0.3-dev.3867+ea7d58b70",
4
+ "version": "0.0.4-canary.3767+a1b69c65c",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "type": "commonjs",
7
7
  "bin": {
@@ -15,11 +15,11 @@
15
15
  "url": "https://github.com/atlassian-labs/atlaspack.git"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@atlaspack/apvm-linux-amd64": "0.0.2-dev.3867+ea7d58b70",
19
- "@atlaspack/apvm-linux-arm64": "0.0.2-dev.3867+ea7d58b70",
20
- "@atlaspack/apvm-macos-amd64": "0.0.2-dev.3867+ea7d58b70",
21
- "@atlaspack/apvm-macos-arm64": "0.0.2-dev.3867+ea7d58b70",
22
- "@atlaspack/apvm-windows-amd64": "0.0.2-dev.3867+ea7d58b70"
18
+ "@atlaspack/apvm-linux-amd64": "0.0.4-canary.3767+a1b69c65c",
19
+ "@atlaspack/apvm-linux-arm64": "0.0.4-canary.3767+a1b69c65c",
20
+ "@atlaspack/apvm-macos-amd64": "0.0.4-canary.3767+a1b69c65c",
21
+ "@atlaspack/apvm-macos-arm64": "0.0.4-canary.3767+a1b69c65c",
22
+ "@atlaspack/apvm-windows-amd64": "0.0.4-canary.3767+a1b69c65c"
23
23
  },
24
- "gitHead": "ea7d58b70fbe4bbc6324d4053ac673ea307b7bf6"
24
+ "gitHead": "a1b69c65cc95eb9ffc552b6fb002a20799be4f6c"
25
25
  }