Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pr/405 #412

Merged
merged 10 commits into from
Jun 11, 2024
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"cjs",
"esm",
"src/**/*.test.ts",
"src/**/*.test_.ts"
"src/**/*.test_.ts",
"tsup.config.ts"
]
}
16 changes: 3 additions & 13 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,8 @@ jobs:
id: version-from-tag
run: echo "version=$(echo '${{ steps.version-bump.outputs.newTag }}' | sed 's/v//')" >> "$GITHUB_OUTPUT"

- name: Generate types
run: npm run generate-types

- name: Build esm
run: |
npm run transpile-esm
npm run resources-esm

- name: Build cjs
run: |
npm run transpile-cjs
npm run resources-cjs
- name: Build esm, cjs, types
run: npm run build

- name: Build docs
run: |
Expand All @@ -88,7 +78,7 @@ jobs:
run: npm audit --omit dev --audit-level high

- name: Zip build artifacts
run: zip -r build.zip esm cjs mocks package.json package-lock.json snapshotResolve.js types docs
run: zip -r build.zip dist mocks package.json package-lock.json snapshotResolve.js types docs

- uses: actions/upload-artifact@v3
with:
Expand Down
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# built commonjs
/build/*
/cjs/*
/esm/*
/types/*
types
dist

# test artifacts
iSPAzure.metadata.xml
Expand Down
13 changes: 4 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
.babelrc.js
.eslintrc
.github/
.nvmrc
.prettierrc
babel.config.cjs.json
babel.config.esm.json
cjs/**/*.test.js
cjs/test/
CODE_OF_CONDUCT.md
PIPELINE.md
docs/
esm/**/*.test.js
esm/test/
jest.config.cjs.json
jest.config.esm.json
jest.config.js
jsconfig.json
resources/
snapshotResolve.js
src/*
test/*
tsconfig.json
tsup.config.ts

# Logs
logs
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.14.0
18.17.0
13 changes: 0 additions & 13 deletions babel.config.cjs.json

This file was deleted.

6 changes: 0 additions & 6 deletions babel.config.esm.json

This file was deleted.

8 changes: 8 additions & 0 deletions examples/cjs/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "CommonJS",
"allowSyntheticDefaultImports": true
},
"exclude": ["node_modules"]
}
8 changes: 8 additions & 0 deletions examples/esm/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ES6",
"allowSyntheticDefaultImports": true
},
"exclude": ["node_modules"]
}
7 changes: 4 additions & 3 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES6"
"target": "ES2022",
"allowSyntheticDefaultImports": true
},
"exclude": ["node_modules", "**/node_modules/*", "dist"],
"include": ["src/**/*.mjs"]
"exclude": ["node_modules", "examples", "dist"],
"include": ["src/**/*"]
}
Loading
Loading