Skip to content

Commit

Permalink
feat: add src/index.cts
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jan 24, 2023
1 parent b13fc08 commit 5237d0e
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@yarn-tool/run-script-lifecycle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"pretest": "echo pretest",
"test": "echo test",
"test:jest": "jest --coverage",
"test:jest:coverage": "yarn run test:jest -- --coverage",
"test:jest:snapshot": "yarn run test:jest -- -u",
"test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"",
"test:snapshot": "yarn run test -- -u",
Expand All @@ -33,7 +34,8 @@
"ncu": "npx yarn-tool ncu -u",
"sort-package-json": "npx yarn-tool sort",
"tsc:default": "tsc -p tsconfig.json",
"tsc:esm": "tsc -p tsconfig.esm.json"
"tsc:esm": "tsc -p tsconfig.esm.json",
"tsc:showConfig": "ynpx get-current-tsconfig -p"
},
"dependencies": {
"@npmcli/run-script": "^6.0.0",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const _defaultCopyStaticFilesTsdx = [

['tsconfig.json', 'file/tsconfig.tsdx.json.tpl', 'tsconfig.json'],
['test/tsconfig.json', 'file/test/tsconfig.json.tpl', 'test/tsconfig.json'],
['src/index.cts', 'file/tsdx/index.cts'],

] as const;

Expand Down
4 changes: 4 additions & 0 deletions packages/@yarn-tool/static-file/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,7 @@ dist/*.umd.*.*s

!/.yarnrc.yml
.turbo
/file/tsdx/index.cjs
/file/tsdx/index.d.cts
/file/test/__root.d.ts
/file/test/__root.js
1 change: 1 addition & 0 deletions packages/@yarn-tool/static-file/file/gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,4 @@ dist/*.umd.*.*s
.turbo

!/.run/
!/.storybook/
23 changes: 23 additions & 0 deletions packages/@yarn-tool/static-file/file/npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ now.json
*.spec.d.tsx
*.spec.tsx

*.test.d.ts
*.test.js
*.test.ts

*.test.d.cts
*.test.cjs
*.test.cts

*.test.d.mts
*.test.mjs
*.test.mts

*.test.d.tsx
*.test.tsx

__mocks__
__tests__
__snapshots__
Expand Down Expand Up @@ -140,3 +155,11 @@ bin/tsconfig.*.json
__file_snapshots__
__fixtures__
/fixture/

/global.tsdx.d.ts
/next-env.d.ts

*.stories.*
./stories/
./global.tsdx.d.ts
./global.d.ts
4 changes: 4 additions & 0 deletions packages/@yarn-tool/static-file/file/tsdx/index.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import _ from './index';

// @ts-ignore
export = _
4 changes: 4 additions & 0 deletions packages/sort-package-json-scripts/lib/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/sort-package-json-scripts/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function omitKey(name: string)
*/
export const defaultNpmScriptsOrder = new Set([

'serve',
'start',
'dev',
'restart',
Expand All @@ -69,6 +70,9 @@ export const defaultNpmScriptsOrder = new Set([
'postuninstallOnly',

'build',
'storybook',
'build-storybook',
'analyze',

'link',

Expand Down

0 comments on commit 5237d0e

Please sign in to comment.