Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 9, 2025

Renaming Plan: atsds/tsds.mts → atsds/index.mts

  • 1. Rename the file atsds/tsds.mts to atsds/index.mts
  • 2. Update package.json to reference index.mjs instead of tsds.mjs
    • Update exports field
    • Update main field
    • Update module field
    • Update browser field
    • Update types field (to index.d.mts)
    • Update files array
  • 3. Update rollup.config.mjs to reference atsds/index.mts instead of atsds/tsds.mts
    • Update input entries (change "tsds" to "index")
  • 4. Update test files in tests/ directory
    • test_variable.mjs
    • test_rule.mjs
    • test_item.mjs
    • test_string.mjs
    • test_term.mjs
    • test_list.mjs
    • test_search.mjs
  • 5. Update examples files
    • examples/main.mjs
  • 6. Update documentation files
    • README.md (tsds/ → atsds/)
    • docs/examples/sudoku.md (dist/tsds.mjs → dist/index.mjs, version 0.0.2 → 0.0.4)
    • docs/getting-started/installation.md (dist/tsds.mjs → dist/index.mjs)
  • 7. Grep for any other references and update them (verified: no remaining references)
  • 8. Code review passed with no issues
  • 9. Security scan completed (no issues)
Original prompt

This section details on the original issue you should resolve

<issue_title>atsds/tsds.mts 重命名成 atsds/index.mts 吧, 导出的文件也改名叫 ./dist/index.mjs 吧</issue_title>
<issue_description>需要修改的范围有:

  1. 他们本身
  2. package.json 和 rollup 的配置
  3. tests文件夹内的文件和examples文件夹内的文件
  4. README.md 和 docs 中可能存在需要修改的地方
  5. 其他我没注意到不知道是否存在需要更改的, 你grep一下吧.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
Copilot AI changed the title [WIP] Rename atsds/tsds.mts to atsds/index.mts and update exports Rename atsds/tsds.mts to atsds/index.mts and update output to dist/index.mjs Dec 9, 2025
Copilot AI requested a review from hzhangxyz December 9, 2025 12:23
@hzhangxyz hzhangxyz marked this pull request as ready for review December 9, 2025 12:32
Copilot AI review requested due to automatic review settings December 9, 2025 12:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes the TypeScript entry point naming by renaming atsds/tsds.mts to atsds/index.mts and updating the build output from dist/tsds.mjs to dist/index.mjs. This follows common JavaScript/TypeScript conventions where the main module is named index.

  • Updated build configuration in package.json and rollup.config.mjs to reflect new naming
  • Updated all import statements across test files and examples to use the new path
  • Updated documentation and CDN references to point to dist/index.mjs

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
atsds/index.mts New entry point file (renamed from tsds.mts) with complete TypeScript wrapper implementation
package.json Updated exports, main, module, browser, types fields and files array to reference dist/index.*
rollup.config.mjs Changed input entry names from 'tsds' to 'index' in both build configurations
tests/test_variable.mjs Updated import to use ../atsds/index.mts
tests/test_term.mjs Updated import to use ../atsds/index.mts
tests/test_string.mjs Updated import to use ../atsds/index.mts
tests/test_search.mjs Updated import to use ../atsds/index.mts
tests/test_rule.mjs Updated import to use ../atsds/index.mts
tests/test_list.mjs Updated import to use ../atsds/index.mts
tests/test_item.mjs Updated import to use ../atsds/index.mts
examples/main.mjs Updated import to use ../atsds/index.mts
docs/getting-started/installation.md Updated unpkg CDN reference to dist/index.mjs
docs/examples/sudoku.md Updated unpkg CDN reference to dist/index.mjs
README.md Updated directory reference from tsds/ to atsds/

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hzhangxyz
Copy link
Member

@copilot 把sudoku中例子的版本号更新到0.0.4吧

Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 9, 2025

@copilot 把sudoku中例子的版本号更新到0.0.4吧

Updated the version from 0.0.2 to 0.0.4 in docs/examples/sudoku.md (commit 5ac4b8f)

Copilot AI requested a review from hzhangxyz December 9, 2025 12:42
@hzhangxyz hzhangxyz merged commit c91bbaa into main Dec 9, 2025
88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

atsds/tsds.mts 重命名成 atsds/index.mts 吧, 导出的文件也改名叫 ./dist/index.mjs

2 participants