Skip to content

Commit b7ce2a2

Browse files
committed
Types package refactoring
1 parent d48e3b0 commit b7ce2a2

File tree

95 files changed

+154
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+154
-142
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ node_modules/
4646
/packages/core-js-pure/LICENSE
4747
/packages/core-js-pure/index.js
4848
/packages/core-js-pure/configurator.js
49-
/packages/core-js-types/dist/
49+
/packages/core-js-types/ts*
5050
/packages/core-js-types/LICENSE
5151
/tests/**/bundles/
5252
/tests/compat/*.jar

packages/core-js-types/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
/src/
3+
*.log
4+
.*

packages/core-js-types/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,50 +30,50 @@
3030
"typesVersions": {
3131
">=5.6": {
3232
"*": [
33-
"./dist/ts5-6/*"
33+
"./ts5-6/*"
3434
]
3535
},
3636
">=5.2": {
3737
"*": [
38-
"./dist/ts5-2/*"
38+
"./ts5-2/*"
3939
]
4040
}
4141
},
4242
"exports": {
4343
".": {
44-
"types@>=5.6": "./dist/ts5-6/index.d.ts",
45-
"types": "./dist/ts5-2/index.d.ts",
46-
"default": "./dist/ts5-6/index.d.ts"
44+
"types@>=5.6": "./ts5-6/index.d.ts",
45+
"types": "./ts5-2/index.d.ts",
46+
"default": "./ts5-6/index.d.ts"
4747
},
4848
"./actual": {
49-
"types@>=5.6": "./dist/ts5-6/actual.d.ts",
50-
"types": "./dist/ts5-2/actual.d.ts",
51-
"default": "./dist/ts5-6/actual.d.ts"
49+
"types@>=5.6": "./ts5-6/actual.d.ts",
50+
"types": "./ts5-2/actual.d.ts",
51+
"default": "./ts5-6/actual.d.ts"
5252
},
5353
"./es": {
54-
"types@>=5.6": "./dist/ts5-6/es.d.ts",
55-
"types": "./dist/ts5-2/es.d.ts",
56-
"default": "./dist/ts5-6/es.d.ts"
54+
"types@>=5.6": "./ts5-6/es.d.ts",
55+
"types": "./ts5-2/es.d.ts",
56+
"default": "./ts5-6/es.d.ts"
5757
},
5858
"./full": {
59-
"types@>=5.6": "./dist/ts5-6/full.d.ts",
60-
"types": "./dist/ts5-2/full.d.ts",
61-
"default": "./dist/ts5-6/full.d.ts"
59+
"types@>=5.6": "./ts5-6/full.d.ts",
60+
"types": "./ts5-2/full.d.ts",
61+
"default": "./ts5-6/full.d.ts"
6262
},
6363
"./proposals/*": {
64-
"types@>=5.6": "./dist/ts5-6/proposals/*.d.ts",
65-
"types": "./dist/ts5-2/proposals/*.d.ts",
66-
"default": "./dist/ts5-6/proposals/*.d.ts"
64+
"types@>=5.6": "./ts5-6/proposals/*.d.ts",
65+
"types": "./ts5-2/proposals/*.d.ts",
66+
"default": "./ts5-6/proposals/*.d.ts"
6767
},
6868
"./pure": {
69-
"types@>=5.6": "./dist/ts5-6/pure.d.ts",
70-
"types": "./dist/ts5-2/pure.d.ts",
71-
"default": "./dist/ts5-6/pure.d.ts"
69+
"types@>=5.6": "./ts5-6/pure.d.ts",
70+
"types": "./ts5-2/pure.d.ts",
71+
"default": "./ts5-6/pure.d.ts"
7272
},
7373
"./stable": {
74-
"types@>=5.6": "./dist/ts5-6/stable.d.ts",
75-
"types": "./dist/ts5-2/stable.d.ts",
76-
"default": "./dist/ts5-6/stable.d.ts"
74+
"types@>=5.6": "./ts5-6/stable.d.ts",
75+
"types": "./ts5-2/stable.d.ts",
76+
"default": "./ts5-6/stable.d.ts"
7777
}
7878
}
7979
}

packages/core-js-types/src/base/core-js-types/core-js-types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For ensuring compatibility with TypeScript standard types, this code is based on:
1+
// For ensuring compatibility with TypeScript standard types, this code is aligned with:
22
// https://github.com/microsoft/TypeScript/blob/2a90a739c1c1e87e3c3d0c93e16f7e5baadf8035/src/lib/es2019.array.d.ts
33
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
44

packages/core-js-types/src/base/core-js-types/flat-array.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For ensuring compatibility with TypeScript standard types, this code is based on:
1+
// For ensuring compatibility with TypeScript standard types, this code is aligned with:
22
// https://github.com/microsoft/TypeScript/blob/2a90a739c1c1e87e3c3d0c93e16f7e5baadf8035/src/lib/es2019.array.d.ts
33
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
44

packages/core-js-types/src/base/proposals/accessible-object-hasownproperty.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// proposal stage: 4
22
// https://github.com/tc39/proposal-accessible-object-hasownproperty
33

4-
// For ensuring compatibility with TypeScript standard types, this code is based on:
4+
// For ensuring compatibility with TypeScript standard types, this code is aligned with:
55
// https://github.com/microsoft/TypeScript/blob/069de743dbd17b47cc2fc58e1d16da5410911284/src/lib/es2022.object.d.ts
66
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
77

packages/core-js-types/src/base/proposals/array-buffer-base64.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// proposal stage: 3
22
// https://github.com/tc39/proposal-arraybuffer-base64
33

4-
// For ensuring compatibility with TypeScript standard types, this code is based on:
4+
// For ensuring compatibility with TypeScript standard types, this code is aligned with:
55
// https://github.com/microsoft/TypeScript/blob/d3be7e171bf3149fe93c3ce5a85280f1eba3ef8d/src/lib/esnext.typedarrays.d.ts
66
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
77

packages/core-js-types/src/base/proposals/array-buffer-transfer.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// proposal stage: 4
22
// https://github.com/tc39/proposal-arraybuffer-transfer
33

4-
// For ensuring compatibility with TypeScript standard types, this code is based on:
4+
// For ensuring compatibility with TypeScript standard types, this code is aligned with:
55
// https://github.com/microsoft/TypeScript/blob/4a957b74ea4d716356181644d23f6ad5f10824d6/src/lib/es2024.arraybuffer.d.ts
66
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
77

packages/core-js-types/src/base/proposals/array-find-from-last.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// proposal stage: 4
22
// https://github.com/tc39/proposal-array-find-from-last
33

4-
// For ensuring compatibility with TypeScript standard types, this code is based on:
4+
// For ensuring compatibility with TypeScript standard types, this code is aligned with:
55
// https://github.com/microsoft/TypeScript/blob/069de743dbd17b47cc2fc58e1d16da5410911284/src/lib/es2023.array.d.ts
66
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
77

packages/core-js-types/src/base/proposals/array-flat-map-custom.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// proposal stage: 4
44
// https://github.com/tc39/proposal-flatMap
55

6-
// For ensuring compatibility with TypeScript standard types, this code is based on:
6+
// For ensuring compatibility with TypeScript standard types, this code is aligned with:
77
// https://github.com/microsoft/TypeScript/blob/069de743dbd17b47cc2fc58e1d16da5410911284/src/lib/es2019.array.d.ts#L46
88
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
99

0 commit comments

Comments
 (0)