Skip to content

Commit 1511d8d

Browse files
Rename build folders
1 parent 076151b commit 1511d8d

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

.github/workflows/ci-cd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
7878
7979
- name: Store assets
80-
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release_v1.14.0')
80+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development')
8181
uses: actions/upload-artifact@v3
8282
with:
8383
name: assets
@@ -88,7 +88,7 @@ jobs:
8888
name: Upload assets
8989
runs-on: ubuntu-latest
9090
needs: build
91-
if: github.event_name == 'push' && github.ref == 'refs/heads/release_v1.14.0'
91+
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
9292
strategy:
9393
matrix:
9494
environment:

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.DS_Store
22
/.vscode
33
/node_modules
4-
/lib
5-
/es
4+
/cjs
5+
/esm
66
/umd
77
/types
88
/coverage

CHANGES.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
1.14.0 (September XX, 2024)
2-
- Updated @splitsoftware/splitio package to version 10.29.0 that includes minor updates:
3-
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
4-
- Added support for targeting rules based on large segments for browsers.
5-
- Updated some transitive dependencies for vulnerability fixes.
1+
1.14.0 (October XX, 2024)
2+
- Added support for targeting rules based on large segments for browsers.
3+
- Updated @splitsoftware/splitio package to version 10.29.0 that includes minor updates, and updated some transitive dependencies for vulnerability fixes.
4+
- Renamed distribution folders from `/lib` to `/cjs` for CommonJS build, and `/es` to `/esm` for EcmaScript Modules build.
65

76
1.13.0 (September 6, 2024)
87
- Updated @splitsoftware/splitio package to version 10.28.0 that includes minor updates:

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@splitsoftware/splitio-react",
33
"version": "1.13.1-rc.0",
44
"description": "A React library to easily integrate and use Split JS SDK",
5-
"main": "lib/index.js",
6-
"module": "es/index.js",
5+
"main": "cjs/index.js",
6+
"module": "esm/index.js",
77
"types": "types/index.d.ts",
88
"files": [
99
"README.md",
@@ -12,17 +12,17 @@
1212
"LICENSE",
1313
"CHANGES.txt",
1414
"src",
15-
"lib",
16-
"es",
15+
"cjs",
16+
"esm",
1717
"types"
1818
],
1919
"sideEffects": false,
2020
"scripts": {
21-
"build:cjs": "rimraf lib/* types/* && tsc -m commonjs --outDir lib -d true --declarationDir types",
22-
"build:esm": "rimraf es/* && tsc",
21+
"build:cjs": "rimraf cjs/* types/* && tsc -m commonjs --outDir cjs -d true --declarationDir types",
22+
"build:esm": "rimraf esm/* && tsc",
2323
"build:umd": "rimraf umd/* && webpack --config webpack.dev.js --env branch=$BUILD_BRANCH && webpack --config webpack.prod.js --env branch=$BUILD_BRANCH",
2424
"build": "npm run build:cjs && npm run build:esm && npm run build:umd",
25-
"postbuild": "replace 'REACT_SDK_VERSION_NUMBER' $npm_package_version ./lib/constants.js ./es/constants.js ./umd -r",
25+
"postbuild": "replace 'REACT_SDK_VERSION_NUMBER' $npm_package_version ./cjs/constants.js ./esm/constants.js ./umd -r",
2626
"check": "npm run check:lint && npm run check:types",
2727
"check:lint": "eslint 'src/**/*.ts*'",
2828
"check:types": "tsc --noEmit",

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
88
"declaration": false, /* Generates corresponding '.d.ts' file. */
99
"sourceMap": false, /* Generates corresponding '.map' file. */
10-
"outDir": "./es", /* Redirect output structure to the directory. */
10+
"outDir": "./esm", /* Redirect output structure to the directory. */
1111
"resolveJsonModule": true, /* Include modules imported with .json extension. */
1212
"importHelpers": true, /* Import emit helpers from 'tslib'. */
1313

0 commit comments

Comments
 (0)