2019-05-06 21:14:43 +03:00
|
|
|
## BEGIN Rush .gitignore
|
|
|
|
|
|
|
|
# Logs
|
|
|
|
*.log
|
|
|
|
npm-debug.log*
|
|
|
|
yarn-debug.log*
|
|
|
|
yarn-error.log*
|
|
|
|
|
|
|
|
# Runtime data
|
|
|
|
*.pid
|
|
|
|
*.seed
|
|
|
|
*.pid.lock
|
|
|
|
|
2022-10-10 21:32:44 +03:00
|
|
|
# Default Assets restore directory
|
|
|
|
.assets
|
|
|
|
|
2019-05-06 21:14:43 +03:00
|
|
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
|
|
lib-cov
|
|
|
|
|
|
|
|
# Coverage directory used by tools like istanbul
|
|
|
|
coverage
|
|
|
|
coverage-browser
|
|
|
|
|
|
|
|
# nyc test coverage
|
|
|
|
.nyc_output
|
|
|
|
|
|
|
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
|
|
.grunt
|
|
|
|
|
|
|
|
# Bower dependency directory (https://bower.io/)
|
|
|
|
bower_components
|
|
|
|
|
|
|
|
# node-waf configuration
|
|
|
|
.lock-wscript
|
|
|
|
|
|
|
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
|
|
build/Release
|
|
|
|
|
|
|
|
# Dependency directories
|
|
|
|
node_modules/
|
|
|
|
jspm_packages/
|
|
|
|
|
|
|
|
# Optional npm cache directory
|
|
|
|
.npm
|
|
|
|
|
|
|
|
# Optional eslint cache
|
|
|
|
.eslintcache
|
|
|
|
|
|
|
|
# Optional REPL history
|
|
|
|
.node_repl_history
|
|
|
|
|
|
|
|
# Output of 'npm pack'
|
|
|
|
*.tgz
|
|
|
|
|
|
|
|
# Yarn Integrity file
|
|
|
|
.yarn-integrity
|
|
|
|
|
|
|
|
# dotenv environment variables file
|
2022-12-02 02:05:12 +03:00
|
|
|
*.env
|
|
|
|
!sample.env
|
|
|
|
!test.env
|
2019-05-06 21:14:43 +03:00
|
|
|
|
|
|
|
# next.js build output
|
|
|
|
.next
|
|
|
|
|
|
|
|
# Common toolchain intermediate files
|
|
|
|
temp
|
|
|
|
|
|
|
|
# Rush files
|
|
|
|
common/temp/**
|
|
|
|
package-deps.json
|
2020-09-15 17:05:09 +03:00
|
|
|
common/autoinstallers/*/.npmrc
|
2019-05-06 21:14:43 +03:00
|
|
|
|
|
|
|
## END Rush .gitignore
|
|
|
|
|
|
|
|
projects/*
|
|
|
|
targets/*
|
|
|
|
test/data/test_package.zip
|
|
|
|
|
|
|
|
# Nuget packages and corresponding codegen sources
|
|
|
|
.nuget
|
|
|
|
packages
|
|
|
|
|
|
|
|
# Visual Studio #
|
|
|
|
*.suo
|
|
|
|
*.user
|
|
|
|
.ntvs_analysis.dat
|
|
|
|
obj/*
|
|
|
|
examples/obj
|
|
|
|
examples/.ntvs_analysis.dat
|
|
|
|
examples/.vs
|
|
|
|
examples/bin
|
|
|
|
.vs
|
|
|
|
TestResults/*
|
|
|
|
.vscode/*
|
|
|
|
./**/.vscode/*
|
|
|
|
|
|
|
|
# Node #
|
|
|
|
**/node_modules/
|
|
|
|
**/cjs/
|
|
|
|
**/esm/
|
|
|
|
**/lib/**/*.js
|
|
|
|
**/lib/**/*.js.map
|
|
|
|
**/*Bundle.js
|
|
|
|
**/*Bundle.js.map
|
|
|
|
**/package-lock.json
|
2023-03-24 20:29:43 +03:00
|
|
|
**/yarn.lock
|
2019-05-06 21:14:43 +03:00
|
|
|
npm-debug.log.*
|
|
|
|
azure_error
|
|
|
|
checkstyle-result.xml
|
|
|
|
test-result.xml
|
|
|
|
test-results.*xml
|
|
|
|
**/cjs/
|
|
|
|
**/esm/
|
|
|
|
|
|
|
|
# Mac OS #
|
|
|
|
.DS_Store
|
|
|
|
.DS_Store?
|
|
|
|
|
|
|
|
# Windows #
|
|
|
|
Thumbs.db
|
|
|
|
|
|
|
|
# Credentials #
|
|
|
|
*.cer
|
|
|
|
*.pfx
|
|
|
|
*.pem
|
2021-01-19 18:40:51 +03:00
|
|
|
*.key
|
2022-02-09 23:25:35 +03:00
|
|
|
*.srl
|
2019-05-06 21:14:43 +03:00
|
|
|
|
|
|
|
# WebStorm #
|
|
|
|
.idea/
|
|
|
|
|
|
|
|
# docs #
|
|
|
|
docs/
|
2022-03-01 18:46:36 +03:00
|
|
|
!eng/scripts/docs
|
2019-05-06 21:14:43 +03:00
|
|
|
main.conf.json
|
|
|
|
child.conf.json
|
2022-10-20 22:20:26 +03:00
|
|
|
docGen/
|
2019-05-06 21:14:43 +03:00
|
|
|
|
|
|
|
# temporary test artifacts
|
|
|
|
test/tmp/*
|
2020-10-15 20:41:36 +03:00
|
|
|
common/smoke-test/run-manifest.json
|
2019-05-06 21:14:43 +03:00
|
|
|
|
|
|
|
# build artifacts
|
|
|
|
dist
|
|
|
|
dist-*
|
|
|
|
test-dist
|
|
|
|
test-dist*
|
|
|
|
test-browser
|
|
|
|
typings
|
|
|
|
typedoc
|
2019-05-31 18:37:42 +03:00
|
|
|
types
|
2019-07-06 00:46:20 +03:00
|
|
|
es
|
|
|
|
sdk/cosmosdb/cosmos/lib
|
|
|
|
*.test.js
|
|
|
|
*.test.js.map
|
|
|
|
*lintReport.html
|
2021-04-02 23:08:33 +03:00
|
|
|
tsdoc-metadata.json
|
2019-05-06 21:14:43 +03:00
|
|
|
|
2022-11-16 02:30:24 +03:00
|
|
|
# locally cloned assets
|
|
|
|
.assets
|
|
|
|
|
2019-05-06 21:14:43 +03:00
|
|
|
# autorest generated files
|
|
|
|
swagger/*.json
|
2020-09-02 00:44:35 +03:00
|
|
|
|
|
|
|
#autorest artifacts
|
|
|
|
code-model-*
|
2022-01-11 23:05:11 +03:00
|
|
|
|
|
|
|
# code workspaces
|
|
|
|
*.code-workspace
|
|
|
|
!/dataplane.code-workspace
|
2023-02-21 07:25:55 +03:00
|
|
|
|
|
|
|
# CPU profiles
|
|
|
|
*.cpuprofile
|
2023-12-14 00:34:12 +03:00
|
|
|
|
2023-03-21 15:27:33 +03:00
|
|
|
# Temp typespec files
|
|
|
|
TempTypeSpecFiles/
|
2023-09-21 19:39:06 +03:00
|
|
|
|
|
|
|
# Symbolic link from project directory to recordings
|
|
|
|
_recordings
|
2023-12-14 00:34:12 +03:00
|
|
|
|
|
|
|
# CI generated artifacts
|
|
|
|
/artifacts
|
|
|
|
|
2023-10-16 21:45:13 +03:00
|
|
|
sdk/template/template-dpg/src/src
|
[core] Upgrade to ES-Modules for core (#26238)
### Packages impacted by this PR
- @azure/abort-controller
- @azure/core-auth
- @azure/core-client
- @azure-rest/core-client
- @azure/core-http-compat
- @azure/core-lro
- @azure/core-paging
- @azure/core-rest-pipeline
- @azure/core-sse
- @azure/core-tracing
- @azure/core-util
- @azure/core-xml
- @azure/logger
- @typespec/ts-http-runtime
### Issues associated with this PR
### Describe the problem that is addressed by this PR
This migrates the core packages from a hybrid of CJS and ESM to an ESM
solution using [`tshy`](https://github.com/isaacs/tshy). The core is now
ESM, implemented as a module, and projects using `tshy` to CommonJS and
ESM.
The ESM build targets we will target include:
- ESM (Node)
- Browser
- React-Native
- Bun
- Deno
This will allow each system to pick up the correct output instead of
picking the browser bundle which has happened in the past. Currently,
our bun and deno support is strictly through npm compatibility and we
are not forking logic at this point for those runtimes.
In order to support ESM, `sinon` does not allow for ESM module mocking,
so we looked for an alterative in `vitest`. This PR also migrates all
core packages stated above from Mocha/Chai for Node and Mocha/Chai/Karma
for the browser to using `vitest` for all tests. Currently, the system
builds a test bundle which targets the correct files such as those
targeted for the browser, eg `log-browser.mts` becomes `log.js` in the
compiled output.
### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
### Are there test cases added in this PR? _(If not, why?)_
### Provide a list of related PRs _(if any)_
### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
---------
Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
Co-authored-by: Maor Leger <maorleger@users.noreply.github.com>
Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2024-02-20 20:42:23 +03:00
|
|
|
|
|
|
|
# tshy
|
|
|
|
.tshy-build-tmp
|
2024-03-14 05:44:52 +03:00
|
|
|
|
|
|
|
# sshkey
|
|
|
|
sdk/**/sshkey
|
|
|
|
sdk/**/sshkey.pub
|