expo-test-runner 0.6.0 → 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 ADDED
@@ -0,0 +1,13 @@
1
+ # expo-test-runner
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
+
9
+ ## 0.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Force-bump all packages, due to migration to changesets. ([#50762](https://github.com/expo/expo/pull/50762) by [@kitten](https://github.com/kitten))
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.0",
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,16 +24,13 @@
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.3"
31
+ "@expo/internal-scripts": "58.0.6",
32
+ "@types/node": "^22.14.0"
35
33
  },
36
- "gitHead": "c543a7181fc32e14f42d89550087b80ac5c490f2",
37
34
  "scripts": {
38
35
  "build": "expo-build src",
39
36
  "clean": "expo-module clean",
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
  }
package/.eslintignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules
2
- **/ts-declarations/*
3
- /build
package/.npmignore DELETED
@@ -1,19 +0,0 @@
1
- # @generated by expo-module-scripts
2
-
3
- # Exclude all top-level hidden directories by convention
4
- /.*/
5
-
6
- # Exclude tarballs generated by `npm pack`
7
- /*.tgz
8
-
9
- __mocks__
10
- __tests__
11
- __rsc_tests__
12
-
13
- /e2e
14
- /e2e-cli
15
- /babel.config.js
16
- /oxlint.config.mjs
17
- /android/src/androidTest/
18
- /android/src/test/
19
- /ios/Tests
package/.tsbuildinfo DELETED
@@ -1 +0,0 @@
1
- {"version":"6.0.3"}
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "include": ["./src"],
3
- "extends": "expo-module-scripts/tsconfig.node",
4
- "compilerOptions": {
5
- "rootDir": "./src",
6
- "noEmit": true,
7
- "paths": {},
8
- "sourceMap": true,
9
- "inlineSources": true
10
- }
11
- }