expo-test-runner 0.6.1 → 0.6.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # expo-test-runner
2
2
 
3
+ ## 0.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Drop `temp-dir` and `unique-string` ([#52931](https://github.com/expo/expo/pull/52931) by [@kitten](https://github.com/kitten))
8
+
3
9
  ## 0.6.1
4
10
 
5
11
  ### Patch Changes
package/build/Paths.js CHANGED
@@ -1,10 +1,10 @@
1
- import { mkdirSync } from 'fs';
1
+ import { randomBytes } from 'crypto';
2
+ import { mkdirSync, realpathSync } from 'fs';
3
+ import { tmpdir } from 'os';
2
4
  import { join } from 'path';
3
- import tempDir from 'temp-dir';
4
- import uniqueString from 'unique-string';
5
5
  export const SelfPath = join(__dirname, '..');
6
6
  export function temporaryDirectory() {
7
- const directory = join(tempDir, uniqueString());
7
+ const directory = join(realpathSync(tmpdir()), randomBytes(16).toString('hex'));
8
8
  mkdirSync(directory);
9
9
  return directory;
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["Paths.ts"],"sourcesContent":[null],"names":["mkdirSync","join","tempDir","uniqueString","SelfPath","__dirname","temporaryDirectory","directory"],"mappings":"AAAA,SAASA,SAAS,QAAQ,KAAK;AAC/B,SAASC,IAAI,QAAQ,OAAO;AAC5B,OAAOC,aAAa,WAAW;AAC/B,OAAOC,kBAAkB,gBAAgB;AAEzC,OAAO,MAAMC,WAAWH,KAAKI,WAAW,MAAM;AAE9C,OAAO,SAASC;IACd,MAAMC,YAAYN,KAAKC,SAASC;IAChCH,UAAUO;IACV,OAAOA;AACT"}
1
+ {"version":3,"sources":["Paths.ts"],"sourcesContent":[null],"names":["randomBytes","mkdirSync","realpathSync","tmpdir","join","SelfPath","__dirname","temporaryDirectory","directory","toString"],"mappings":"AAAA,SAASA,WAAW,QAAQ,SAAS;AACrC,SAASC,SAAS,EAAEC,YAAY,QAAQ,KAAK;AAC7C,SAASC,MAAM,QAAQ,KAAK;AAC5B,SAASC,IAAI,QAAQ,OAAO;AAE5B,OAAO,MAAMC,WAAWD,KAAKE,WAAW,MAAM;AAE9C,OAAO,SAASC;IACd,MAAMC,YAAYJ,KAAKF,aAAaC,WAAWH,YAAY,IAAIS,QAAQ,CAAC;IACxER,UAAUO;IACV,OAAOA;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-test-runner",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Script that enchants test experience.",
5
5
  "homepage": "https://github.com/expo/expo/tree/main/packages/expo-test-runner#readme",
6
6
  "bugs": {
@@ -24,14 +24,12 @@
24
24
  "chalk": "^4.1.2",
25
25
  "commander": "^7.2.0",
26
26
  "dot": "^2.0.0-beta.1",
27
- "fetch-nodeshim": "^0.4.10",
28
- "temp-dir": "~2.0.0",
29
- "unique-string": "~2.0.0"
27
+ "fetch-nodeshim": "^0.4.10"
30
28
  },
31
29
  "devDependencies": {
32
30
  "@babel/core": "^7.23.7",
33
- "@types/node": "^22.14.0",
34
- "expo-module-scripts": "56.0.4"
31
+ "@expo/internal-scripts": "58.0.6",
32
+ "@types/node": "^22.14.0"
35
33
  },
36
34
  "scripts": {
37
35
  "build": "expo-build src",
package/src/Paths.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { mkdirSync } from 'fs';
1
+ import { randomBytes } from 'crypto';
2
+ import { mkdirSync, realpathSync } from 'fs';
3
+ import { tmpdir } from 'os';
2
4
  import { join } from 'path';
3
- import tempDir from 'temp-dir';
4
- import uniqueString from 'unique-string';
5
5
 
6
6
  export const SelfPath = join(__dirname, '..');
7
7
 
8
8
  export function temporaryDirectory() {
9
- const directory = join(tempDir, uniqueString());
9
+ const directory = join(realpathSync(tmpdir()), randomBytes(16).toString('hex'));
10
10
  mkdirSync(directory);
11
11
  return directory;
12
12
  }