Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit fda4dd4

Browse files
committed
Drop support for "bs-platform".
Fixes #609
1 parent 64ed742 commit fda4dd4

File tree

12 files changed

+12
-15
lines changed

12 files changed

+12
-15
lines changed

Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# master
2+
- Drop support for "bs-platform".
23

34
# 4.4.0
45
- Flow: use explicit suppression codes.

examples/typescript-react-example/src/Docstrings.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const $$toJS453167283: { [key: string]: any } = {"0": "A", "1": "B"};
66

77
// @ts-ignore: Implicit any on import
8-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
8+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
99
const Curry: any = Curry__Es6Import;
1010

1111
// @ts-ignore: Implicit any on import

examples/typescript-react-example/src/Hooks.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import * as React from 'react';
66

77
// @ts-ignore: Implicit any on import
8-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
8+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
99
const Curry: any = Curry__Es6Import;
1010

1111
// @ts-ignore: Implicit any on import

examples/typescript-react-example/src/ImportJsValue.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {polymorphic as polymorphicNotChecked} from './MyMath';
1919
import {default as defaultNotChecked} from './MyMath';
2020

2121
// @ts-ignore: Implicit any on import
22-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
22+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
2323
const Curry: any = Curry__Es6Import;
2424

2525
// In case of type error, check the type of 'round' in 'ImportJsValue.re' and './MyMath'.

examples/typescript-react-example/src/Records.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
// @ts-ignore: Implicit any on import
6-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
6+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
77
const Curry: any = Curry__Es6Import;
88

99
// @ts-ignore: Implicit any on import

examples/typescript-react-example/src/References.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
// @ts-ignore: Implicit any on import
6-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
6+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
77
const Curry: any = Curry__Es6Import;
88

99
// @ts-ignore: Implicit any on import

examples/typescript-react-example/src/TestPromise.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
// @ts-ignore: Implicit any on import
6-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
6+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
77
const Curry: any = Curry__Es6Import;
88

99
// @ts-ignore: Implicit any on import

examples/typescript-react-example/src/Uncurried.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
// @ts-ignore: Implicit any on import
6-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
6+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
77
const Curry: any = Curry__Es6Import;
88

99
// @ts-ignore: Implicit any on import

examples/typescript-react-example/src/nested/Tuples.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
// @ts-ignore: Implicit any on import
6-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
6+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
77
const Curry: any = Curry__Es6Import;
88

99
// @ts-ignore: Implicit any on import

examples/typescript-react-example/src/nested/Types.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
// @ts-ignore: Implicit any on import
6-
import * as Curry__Es6Import from 'bs-platform/lib/es6/curry.js';
6+
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
77
const Curry: any = Curry__Es6Import;
88

99
// @ts-ignore: Implicit any on import

examples/untyped-react-example/src/App.gen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Untyped file generated from App.res by genType. */
22
/* eslint-disable */
33

4-
import * as Curry from 'bs-platform/lib/es6/curry.js';
4+
import * as Curry from 'rescript/lib/es6/curry.js';
55

66
import * as AppBS from './App.bs';
77

src/Config_.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
module ModuleNameMap = Map.Make (ModuleName)
22

33
let bsbProjectRoot = ref ""
4-
54
let projectRoot = ref ""
65

76
type language = Flow | TypeScript | Untyped
8-
97
type module_ = CommonJS | ES6
10-
118
type importPath = Relative | Node
12-
139
type bsVersion = int * int * int
1410

1511
type config = {
@@ -186,7 +182,7 @@ let readConfig ~bsVersion ~getBsConfigFile ~namespace =
186182
let v1, v2, v3 = bsVersion in
187183
let platformLib =
188184
match externalStdlib with
189-
| None -> if v1 >= 9 && v2 >= 1 then "rescript" else "bs-platform"
185+
| None -> "rescript"
190186
| Some externalStdlib -> externalStdlib
191187
in
192188
if !Debug.config then (

0 commit comments

Comments
 (0)